/
usr
/
share
/
bash-completion
/
completions
/
/usr/share/bash-completion/completions
mkdir
upload
Name
Size
Mode
Actions
addpart
447
0644
edit
dl
rm
blkdiscard
639
0644
edit
dl
rm
blkid
2094
0644
edit
dl
rm
blkzone
971
0644
edit
dl
rm
blockdev
726
0644
edit
dl
rm
bootctl
1937
0644
edit
dl
rm
busctl
8015
0644
edit
dl
rm
bwrap
919
0644
edit
dl
rm
cal
426
0644
edit
dl
rm
cfdisk
546
0644
edit
dl
rm
chcpu
1510
0644
edit
dl
rm
chfn
445
0644
edit
dl
rm
chmem
501
0644
edit
dl
rm
chrt
920
0644
edit
dl
rm
chsh
504
0644
edit
dl
rm
cloud-init
3300
0644
edit
dl
rm
col
460
0644
edit
dl
rm
colcrt
484
0644
edit
dl
rm
colrm
509
0644
edit
dl
rm
column
725
0644
edit
dl
rm
coredumpctl
3715
0644
edit
dl
rm
cpupower
3503
0644
edit
dl
rm
ctrlaltdel
335
0644
edit
dl
rm
delpart
526
0644
edit
dl
rm
devlink
27404
0644
edit
dl
rm
dmesg
1182
0644
edit
dl
rm
dnf
10212
0644
edit
dl
rm
dracut
3580
0644
edit
dl
rm
eject
1189
0644
edit
dl
rm
ethtool
24075
0644
edit
dl
rm
fallocate
721
0644
edit
dl
rm
fdformat
566
0644
edit
dl
rm
fdisk
1834
0644
edit
dl
rm
fincore
916
0644
edit
dl
rm
findfs
695
0644
edit
dl
rm
findmnt
3154
0644
edit
dl
rm
firewall-cmd
10604
0644
edit
dl
rm
flock
874
0644
edit
dl
rm
fsck
787
0644
edit
dl
rm
fsck.cramfs
684
0644
edit
dl
rm
fsck.minix
383
0644
edit
dl
rm
fsfreeze
524
0644
edit
dl
rm
fstrim
677
0644
edit
dl
rm
fwupdmgr
9831
0644
edit
dl
rm
fwupdtool
8438
0644
edit
dl
rm
gapplication
1389
0644
edit
dl
rm
gdbus
935
0644
edit
dl
rm
getopt
815
0644
edit
dl
rm
grub
11681
0644
edit
dl
rm
gsettings
2829
0644
edit
dl
rm
hexdump
1007
0644
edit
dl
rm
hostnamectl
2281
0644
edit
dl
rm
hwclock
938
0644
edit
dl
rm
imunify360-agent
12522
0644
edit
dl
rm
ionice
1161
0644
edit
dl
rm
ipcmk
576
0644
edit
dl
rm
ipcrm
1423
0644
edit
dl
rm
ipcs
514
0644
edit
dl
rm
isosize
529
0644
edit
dl
rm
journalctl
5892
0644
edit
dl
rm
kernel-install
1810
0644
edit
dl
rm
kmod
3235
0644
edit
dl
rm
last
949
0644
edit
dl
rm
ldattach
1472
0644
edit
dl
rm
localectl
3739
0644
edit
dl
rm
logger
1553
0644
edit
dl
rm
loginctl
4251
0644
edit
dl
rm
look
683
0644
edit
dl
rm
losetup
1721
0644
edit
dl
rm
lsblk
1961
0644
edit
dl
rm
lscpu
1018
0644
edit
dl
rm
lsinitrd
1983
0644
edit
dl
rm
lsipc
1310
0644
edit
dl
rm
lslocks
1069
0644
edit
dl
rm
lslogins
1704
0644
edit
dl
rm
lsmem
1054
0644
edit
dl
rm
lsns
1167
0644
edit
dl
rm
mcookie
599
0644
edit
dl
rm
mesg
412
0644
edit
dl
rm
mkfs
638
0644
edit
dl
rm
mkfs.cramfs
821
0644
edit
dl
rm
mkfs.minix
714
0644
edit
dl
rm
mkswap
841
0644
edit
dl
rm
mokutil
1177
0644
edit
dl
rm
more
528
0644
edit
dl
rm
mountpoint
487
0644
edit
dl
rm
namei
500
0644
edit
dl
rm
nmcli
3841
0644
edit
dl
rm
nsenter
1171
0644
edit
dl
rm
p11-kit
520
0644
edit
dl
rm
partx
1249
0644
edit
dl
rm
pip3
286
0644
edit
dl
rm
pivot_root
387
0644
edit
dl
rm
portablectl
3986
0644
edit
dl
rm
prlimit
1329
0644
edit
dl
rm
raw
482
0644
edit
dl
rm
readprofile
679
0644
edit
dl
rm
rename
655
0644
edit
dl
rm
renice
784
0644
edit
dl
rm
resizepart
568
0644
edit
dl
rm
resolvectl
7066
0644
edit
dl
rm
rev
432
0644
edit
dl
rm
rfkill
929
0644
edit
dl
rm
rtcwake
1081
0644
edit
dl
rm
runuser
864
0644
edit
dl
rm
script
667
0644
edit
dl
rm
scriptreplay
625
0644
edit
dl
rm
setarch
790
0644
edit
dl
rm
setpriv
2370
0644
edit
dl
rm
setsebool
1816
0644
edit
dl
rm
setsid
440
0644
edit
dl
rm
setterm
2591
0644
edit
dl
rm
sfdisk
2012
0644
edit
dl
rm
stunnel.bash
569
0644
edit
dl
rm
su
864
0644
edit
dl
rm
swaplabel
635
0644
edit
dl
rm
swapoff
743
0644
edit
dl
rm
swapon
1529
0644
edit
dl
rm
syspurpose
720
0644
edit
dl
rm
systemctl
13575
0644
edit
dl
rm
systemd-analyze
6788
0644
edit
dl
rm
systemd-cat
1911
0644
edit
dl
rm
systemd-cgls
2344
0644
edit
dl
rm
systemd-cgtop
2096
0644
edit
dl
rm
systemd-delta
1951
0644
edit
dl
rm
systemd-detect-virt
1361
0644
edit
dl
rm
systemd-path
1901
0644
edit
dl
rm
systemd-resolve
3189
0644
edit
dl
rm
systemd-run
4869
0644
edit
dl
rm
taskset
1207
0644
edit
dl
rm
timedatectl
2984
0644
edit
dl
rm
trust
2040
0644
edit
dl
rm
tuned-adm
604
0644
edit
dl
rm
udevadm
3766
0644
edit
dl
rm
udisksctl
857
0644
edit
dl
rm
ul
655
0644
edit
dl
rm
unshare
809
0644
edit
dl
rm
utmpdump
475
0644
edit
dl
rm
uuidgen
657
0644
edit
dl
rm
uuidparse
727
0644
edit
dl
rm
wall
634
0644
edit
dl
rm
wdctl
1371
0644
edit
dl
rm
whereis
535
0644
edit
dl
rm
wipefs
1192
0644
edit
dl
rm
write
431
0644
edit
dl
rm
zramctl
1273
0644
edit
dl
rm
Edit:
/usr/share/bash-completion/completions/dnf
(10212B)
# dnf completion -*- shell-script -*- # # This file is part of dnf. # # Copyright 2013 (C) Elad Alfassa <elad@fedoraproject.org> # Copyright 2014-2015 (C) Igor Gnatenko <i.gnatenko.brain@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA __dnf_main_options=" -4 -6 -b -c -C -d -e -h -q -R -v -x -y --advisory --advisories --allowerasing --assumeno --assumeyes --best --bugfix --bz --cacheonly --config --color --cve --debuglevel --debugsolver --disableexcludes --disableplugin --disableexcludepkgs --disablerepo --downloadonly --destdir --downloaddir --errorlevel --enableplugin --enablerepo --enhancement --exclude --excludepkgs --help --help-cmd --installroot --newpackage --nodocs --nogpgcheck --noplugins --noautoremove --obsoletes --quiet --randomwait --refresh --releasever --repofrompath --repo --repoid --rpmverbosity --sec-severity --secseverity --security --setopt --skip-broken --showduplicates --verbose --version " __dnf_history_subcmds="info list redo rollback undo userinstalled" __dnf_secseverity_subcmds='Critical Important Low Moderate' __dnf_clean_subcmds="all dbcache expire-cache metadata packages" __dnf_module_subcmds="install remove update enable disable reset provides list info repoquery" __dnf_repoquery_subcmds=" -a -f -i -l -s --all --arch --archlist --available --alldeps --conflicts --deplist --duplicates --exactdeps --extras --envra --enhances --file --groupmember --installed --installonly --info --latest-limit --list --location --nevra --nvr --provides --qf --queryformat --querytags --recent --requires-pre --recommends --requires --recursive --resolve --source --suggests --supplements --show-duplicates --srpm --tree --upgrades --unneeded --unsatisfied --userinstalled --whatconflicts --whatobsoletes --whatprovides --whatrequires --whatrecommends --whatenhances --whatsuggests --whatsupplements " __dnf_repopkgs_subcmds=" check-update info install list move-to remove-or-reinstall remove-or-distro-sync reinstall reinstall-old upgrade upgrade-to " __dnf_python_exec= _dnf_set_python_exec() { if [[ "$( readlink /usr/bin/dnf )" == "dnf-2" ]]; then __dnf_python_exec="/usr/bin/python2" else if [ -x /usr/libexec/platform-python ]; then __dnf_python_exec="/usr/libexec/platform-python" else __dnf_python_exec="/usr/bin/python3" fi fi } _dnf_commands_helper() { local helper_cmd="import sys; from dnf.cli import completion_helper as ch; ch.main(sys.argv[1:])" local helper_opts="-d 0 -q -C --assumeno --nogpgcheck" echo "$( ${__dnf_python_exec} -c "$helper_cmd" "$@" $helper_opts 2>/dev/null </dev/null )" } _dnf_is_path() { if [[ "$1" == \.* ]] || [[ "$1" == \/* ]] || [[ "$1" == ~* ]]; then return 0 else return 1 fi } _dnf_show_packages() { local args cmd=$1 _count_args # do not print packages if command wasnt chosen yet # eg.: dnf inTAB [[ "$args" -eq 1 ]] && return # return when "-" follows command # eg.: dnf up - [[ "$cur" == -* ]] && return shift if ! _dnf_is_path "$cur"; then COMPREPLY+=( $(compgen -W "$( _dnf_commands_helper $cmd "$@" "$cur" )") ) fi [[ $COMPREPLY ]] && return COMPREPLY+=( $(compgen -o default -f -X "!*.@(rpm)" -- "$cur" ) ) } _dnf_get_first_command() { local cmd i for (( i=1; i < ${#COMP_WORDS[@]}; i++ )); do if [[ "$1" == *${COMP_WORDS[i]}* ]]; then cmd=${COMP_WORDS[i]} break fi done echo "$cmd" } _dnf() { _dnf_set_python_exec local complete_commands complete_options extra_options command cmd_list local cur prev words cword split _init_completion -s || return cmd_list="$( _dnf_commands_helper "_cmds" "" )" command="$( _dnf_get_first_command "$cmd_list" )" case $prev in --version) return ;; -h|--help|--help-cmd) [[ $cword -eq 3 ]] && return ;; -d|--debuglevel|-e|--errorlevel) COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9 10' -- "$cur" ) ) return ;; --installroot) _filedir -d return ;; --enablerepo) COMPREPLY=( $(compgen -W "$( _dnf_commands_helper repolist disabled "$cur" )" -- "$cur") ) return ;; --disablerepo) COMPREPLY=( $(compgen -W "$( _dnf_commands_helper repolist enabled "$cur" )" -- "$cur") ) return ;; --color) COMPREPLY=( $(compgen -W "yes no true false 0 1" -- "$cur" ) ) return ;; --destdir|--downloaddir) _filedir -d return ;; --sec*severity) COMPREPLY=( $( compgen -W "$__dnf_secseverity_subcmds" -- "$cur" ) ) return ;; *) ;; esac complete_commands= case "$command" in autoremove|autoremove-n*) _dnf_show_packages list installed ;; check) extra_options="--all --dependencies --duplicates --obsoleted --provides" complete_commands="all dependencies duplicates obsoleted provides" ;; check-update|check-upgrade) _dnf_show_packages list updates ;; clean) complete_commands="$__dnf_clean_subcmds" ;; dup|dist-upgrade|dsync|distro*sync|distribution-synchronization) _dnf_show_packages list installed ;; dg|downgrade) _dnf_show_packages $command ;; group|groups|grouperase|groupinfo|groupinstall|grouplist|groupremove|groupupdate) extra_options="--with-optional --hidden --installed --available" ;; help) [[ $cword -eq 3 ]] && return 0 complete_commands="$cmd_list" ;; history) complete_commands="$__dnf_history_subcmds" ;; info|list) local subcmd="available installed updates upgrades --available --installed --updates --upgrades" case "$( _dnf_get_first_command "$subcmd" )" in --installed|installed) _dnf_show_packages list installed ;; --available|available) _dnf_show_packages list available ;; --updates|--upgrades|updates|upgrades) _dnf_show_packages list updates ;; *) _dnf_show_packages list ;; esac extra_options="--all --available --installed --extras --updates --upgrades --autoremove --recent" ;; info-*|list-*|updateinfo|summary-updateinfo) extra_options="--summary --list --info" complete_commands="summary list info" ;; in|install*|localinstall) _dnf_show_packages $command ;; mark) _dnf_show_packages list installed ;; mc|ref|makecache|refresh) [[ "$prev" == *"timer" ]] && return extra_options="--timer" complete_commands="timer" ;; module) extra_options="--enabled --disabled --installed --profile --available --all" complete_commands="$__dnf_module_subcmds" case $prev in info) extra_options="--profile" ;; remove) extra_options="--all" ;; list) extra_options="--all --enabled --disabled --installed" ;; repoquery) extra_options="--available --installed" ;; esac ;; provides) ;; ri|rei|reinstall) _dnf_show_packages $command ;; rm|remove*|erase*) _dnf_show_packages $command extra_options="--oldinstallonly --duplicates --duplicated" ;; repoinfo|repolist) extra_options="--all --enabled --disabled" case $prev in enabled|--enabled) complete_commands="$( _dnf_commands_helper $command enabled "$cur" )" ;; disabled|--disabled) complete_commands="$( _dnf_commands_helper $command disabled "$cur" )" ;; all|--all|*) complete_commands="$( _dnf_commands_helper $command all "$cur" )" esac ;; repoquery*) extra_options="$__dnf_repoquery_subcmds" ;; repo*-pkgs|repo*-packages) complete_commands="$__dnf_repopkgs_subcmds" ;; se|search) [[ "$prev" == *"all" ]] && return extra_options="--all" complete_commands="all" ;; sh|shell) ;; swap) ;; um|u-m|upgrade|upgrade-n*) _dnf_show_packages $command ;; up|up-min|update|update-n*) _dnf_show_packages $command ;; whatprovides) ;; *) complete_commands="$cmd_list" ;; esac $split && return case $cur in -*) complete_options="$__dnf_main_options $extra_options" COMPREPLY=( $(compgen -W "$complete_options" -- "$cur" )) ;; *) if [[ $cur == $command ]]; then complete_commands="$cmd_list" fi if [[ "$complete_commands" ]]; then COMPREPLY=( $(compgen -W "$complete_commands" -- "$cur" )) fi esac [[ $COMPREPLY == *= ]] && compopt -o nospace return 0 } complete -F _dnf dnf dnf-2 dnf-3
Save
cmd:
run