X7ROOT File Manager
Current Path:
/usr/share/bash-completion/completions
usr
/
share
/
bash-completion
/
completions
/
📁
..
📄
addpart
(520 B)
📄
blkdiscard
(651 B)
📄
blkid
(1.47 KB)
📄
blockdev
(761 B)
📄
bootctl
(1.79 KB)
📄
busctl
(7.54 KB)
📄
cal
(404 B)
📄
cfdisk
(736 B)
📄
chcpu
(1.18 KB)
📄
chfn
(445 B)
📄
chrt
(800 B)
📄
chsh
(506 B)
📄
col
(460 B)
📄
colcrt
(484 B)
📄
colrm
(509 B)
📄
column
(725 B)
📄
coredumpctl
(3.34 KB)
📄
ctrlaltdel
(335 B)
📄
delpart
(649 B)
📄
dmesg
(1.03 KB)
📄
dracut
(3.5 KB)
📄
eject
(1.16 KB)
📄
fallocate
(593 B)
📄
fdformat
(414 B)
📄
fdisk
(1.05 KB)
📄
findmnt
(2.77 KB)
📄
flock
(860 B)
📄
fsck
(789 B)
📄
fsck.cramfs
(508 B)
📄
fsck.minix
(403 B)
📄
fsfreeze
(524 B)
📄
fstrim
(626 B)
📄
gapplication
(1.36 KB)
📄
gdbus
(935 B)
📄
getopt
(815 B)
📄
grub
(11.41 KB)
📄
gsettings
(2.76 KB)
📄
hexdump
(659 B)
📄
hostnamectl
(2.16 KB)
📄
hwclock
(937 B)
📄
ionice
(837 B)
📄
ipcrm
(1.39 KB)
📄
ipcs
(514 B)
📄
isosize
(426 B)
📄
journalctl
(5.4 KB)
📄
kernel-install
(1.75 KB)
📄
kmod
(3.16 KB)
📄
ldattach
(1.23 KB)
📄
localectl
(3.36 KB)
📄
logger
(1.13 KB)
📄
loginctl
(4.03 KB)
📄
look
(572 B)
📄
losetup
(1.47 KB)
📄
lsblk
(1.44 KB)
📄
lscpu
(829 B)
📄
lsinitrd
(2.05 KB)
📄
lslocks
(1002 B)
📄
machinectl
(3.12 KB)
📄
mcookie
(502 B)
📄
mkfs
(692 B)
📄
mkfs.cramfs
(821 B)
📄
mkfs.minix
(716 B)
📄
mkswap
(765 B)
📄
more
(528 B)
📄
mountpoint
(570 B)
📄
namei
(500 B)
📄
nsenter
(955 B)
📄
partx
(1.07 KB)
📄
pivot_root
(387 B)
📄
prlimit
(1.16 KB)
📄
raw
(482 B)
📄
readprofile
(679 B)
📄
rename
(632 B)
📄
renice
(812 B)
📄
resizepart
(691 B)
📄
rev
(432 B)
📄
rpm
(9.77 KB)
📄
rtcwake
(841 B)
📄
runuser
(864 B)
📄
script
(667 B)
📄
scriptreplay
(592 B)
📄
semanage
(6.42 KB)
📄
setarch
(775 B)
📄
setpriv
(1.97 KB)
📄
setsebool
(1.77 KB)
📄
setsid
(433 B)
📄
setterm
(2.24 KB)
📄
sfdisk
(1.41 KB)
📄
su
(864 B)
📄
swaplabel
(635 B)
📄
swapon
(1.32 KB)
📄
systemctl
(12.29 KB)
📄
systemd-analyze
(3.9 KB)
📄
systemd-cat
(1.87 KB)
📄
systemd-cgls
(1.75 KB)
📄
systemd-cgtop
(1.32 KB)
📄
systemd-delta
(1.91 KB)
📄
systemd-detect-virt
(1.29 KB)
📄
systemd-nspawn
(5.74 KB)
📄
systemd-run
(3.51 KB)
📄
tailf
(530 B)
📄
taskset
(1.06 KB)
📄
tc
(26.41 KB)
📄
timedatectl
(2.52 KB)
📄
tuned-adm
(511 B)
📄
udevadm
(3.64 KB)
📄
ul
(655 B)
📄
unshare
(496 B)
📄
utmpdump
(466 B)
📄
uuidgen
(384 B)
📄
wdctl
(1.17 KB)
📄
whereis
(535 B)
📄
wipefs
(760 B)
📄
write
(494 B)
📄
yum
(11.23 KB)
📄
yummain.py
(11.23 KB)
📄
zramctl
(1.18 KB)
Editing: rpm
# bash completion for rpm -*- shell-script -*- # helper functions _rpm_installed_packages() { if [[ -r /var/log/rpmpkgs && \ /var/log/rpmpkgs -nt /var/lib/rpm/Packages ]]; then # using RHL 7.2 or later - this is quicker than querying the DB COMPREPLY=( $( compgen -W "$( sed -ne \ 's|^\([^[:space:]]\{1,\}\)-[^[:space:]-]\{1,\}-[^[:space:]-]\{1,\}\.rpm$|\1|p' \ /var/log/rpmpkgs )" -- "$cur" ) ) elif type rpmqpack &>/dev/null ; then # SUSE's rpmqpack is faster than rpm -qa COMPREPLY=( $( compgen -W '$( rpmqpack )' -- "$cur" ) ) else COMPREPLY=( $( ${1:-rpm} -qa --nodigest --nosignature \ --queryformat='%{NAME} ' "$cur*" 2>/dev/null ) ) fi } _rpm_groups() { local IFS=$'\n' COMPREPLY=( $( compgen -W "$( ${1:-rpm} -qa --nodigest --nosignature \ --queryformat='%{GROUP}\n' 2>/dev/null )" -- "$cur" ) ) } _rpm_macros() { # get a list of macros COMPREPLY=( $( compgen -W "$( ${1:-rpm} --showrc | sed -ne \ 's/^-\{0,1\}[0-9]\{1,\}[:=][[:space:]]\{1,\}\([^[:space:](]\{3,\}\).*/%\1/p' )" \ -- "$cur" ) ) } _rpm_buildarchs() { COMPREPLY=( $( compgen -W "$( ${1:-rpm} --showrc | sed -ne \ 's/^\s*compatible\s\s*build\s\s*archs\s*:\s*\(.*\)/\1/ p' )" \ -- "$cur" ) ) } # rpm(8) completion # _rpm() { local cur prev words cword split _init_completion -s || return if [[ $cword -eq 1 ]]; then # first parameter on line case $cur in --*) COMPREPLY=( $( compgen -W '--help --version --initdb --checksig --addsign --delsign --rebuilddb --showrc --setperms --setugids --eval --install --upgrade --query --freshen --erase --verify --querytags --import' \ -- "$cur" ) ) ;; *) COMPREPLY=( $( compgen -W '-e -E -F -i -q -t -U -V' \ -- "$cur" ) ) ;; esac return 0 fi case $prev in --dbpath|--excludepath|--prefix|--relocate|--root|-r) _filedir -d return 0 ;; --eval|-E) _rpm_macros $1 return 0 ;; --pipe) compopt -o filenames COMPREPLY=( $( compgen -c -- "$cur" ) ) return 0 ;; --rcfile) _filedir return 0 ;; --specfile) # complete on .spec files _filedir spec return 0 ;; --whatprovides) if [[ "$cur" == */* ]]; then _filedir else # complete on capabilities local IFS=$'\n' COMPREPLY=( $( compgen -W "$( $1 -qa --nodigest --nosignature \ --queryformat='%{PROVIDENAME}\n' 2>/dev/null )" \ -- "$cur" ) ) fi return 0 ;; --whatrequires) if [[ "$cur" == */* ]]; then _filedir else # complete on capabilities local IFS=$'\n' COMPREPLY=( $( compgen -W "$( $1 -qa --nodigest --nosignature \ --queryformat='%{REQUIRENAME}\n' 2>/dev/null )" \ -- "$cur" ) ) fi return 0 ;; --define|-D|--fileid|--hdrid|--pkgid) # argument required but no completions available return 0 ;; esac $split && return 0 # options common to all modes local opts="--define= --eval= --macros= --nodigest --nosignature --rcfile= --quiet --pipe --verbose" case ${words[1]} in -[iFU]*|--install|--freshen|--upgrade) if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --percent --force --test --replacepkgs --replacefiles --root --excludedocs --includedocs --noscripts --ignorearch --dbpath --prefix= --ignoreos --nodeps --allfiles --ftpproxy --ftpport --justdb --httpproxy --httpport --noorder --relocate= --badreloc --notriggers --excludepath= --ignoresize --oldpackage --queryformat --repackage --nosuggests" -- "$cur" ) ) else _filedir '[rs]pm' fi ;; -e|--erase) if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --allmatches --noscripts --notriggers --nodeps --test --repackage" -- "$cur" ) ) else _rpm_installed_packages $1 fi ;; -q*|--query) # options common to all query types opts+=" --changelog --configfiles --conflicts --docfiles --dump --enhances --filesbypkg --filecaps --fileclass --filecolor --fileprovide --filerequire --filesbypkg --info --list --obsoletes --pipe --provides --queryformat= --requires --scripts --suggests --triggers --xml" if [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then # -qf completion if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --dbpath --fscontext --last --root --state" -- "$cur" ) ) else _filedir fi elif [[ ${words[@]} == *\ -@(*([^ -])g|-group )* ]]; then # -qg completion _rpm_groups $1 elif [[ ${words[@]} == *\ -@(*([^ -])p|-package )* ]]; then # -qp; uninstalled package completion if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --ftpport --ftpproxy --httpport --httpproxy --nomanifest" -- "$cur" ) ) else _filedir '[rs]pm' fi else # -q; installed package completion if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --all --file --fileid --dbpath --fscontext --ftswalk --group --hdrid --last --package --pkgid --root= --specfile --state --triggeredby --whatprovides --whatrequires" \ -- "$cur" ) ) elif [[ ${words[@]} != *\ -@(*([^ -])a|-all )* ]]; then _rpm_installed_packages $1 fi fi ;; -K*|--checksig) if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --nopgp --nogpg --nomd5" \ -- "$cur" ) ) else _filedir '[rs]pm' fi ;; -[Vy]*|--verify) if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$opts --root= --dbpath --nodeps --nogroup --nolinkto --nomode --nomtime --nordev --nouser --nofiles --noscripts --nomd5 --querytags --specfile --whatrequires --whatprovides" -- "$cur" ) ) # check whether we're doing file completion elif [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then _filedir elif [[ ${words[@]} == *\ -@(*([^ -])g|-group )* ]]; then _rpm_groups $1 elif [[ ${words[@]} == *\ -@(*([^ -])p|-package )* ]]; then _filedir '[rs]pm' else _rpm_installed_packages $1 fi ;; --resign|--addsign|--delsign) _filedir '[rs]pm' ;; --setperms|--setgids) _rpm_installed_packages $1 ;; --import|--dbpath|--root) if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '--import --dbpath --root=' \ -- "$cur" ) ) else _filedir fi ;; esac [[ $COMPREPLY == *= ]] && compopt -o nospace return 0 } && complete -F _rpm rpm _rpmbuild() { local cur prev words cword split _init_completion -s || return local rpm="${1%build*}" [[ $rpm == $1 ]] || ! type $rpm &>/dev/null && rpm= case $prev in --buildroot|--root|-r|--dbpath) _filedir -d return 0 ;; --target) _rpm_buildarchs return 0 ;; --eval|-E) _rpm_macros $rpm return 0 ;; --macros|--rcfile) _filedir return 0 ;; --buildpolicy) local cfgdir=$( $rpm --eval '%{_rpmconfigdir}' 2>/dev/null ) if [[ $cfgdir ]]; then COMPREPLY=( $( compgen -W "$( command ls $cfgdir 2>/dev/null \ | sed -ne 's/^brp-//p' )" -- "$cur" ) ) fi ;; --define|-D|--with|--without) return 0 ;; esac $split && return 0 if [[ $cur == -* ]]; then COMPREPLY=( $( compgen -W "$( _parse_help "$1" )" -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace return 0 fi # Figure out file extensions to complete local word ext for word in ${words[@]}; do case $word in -b?) ext=spec break ;; -t?|--tarbuild) ext='@(t?(ar.)@([gx]z|bz?(2))|tar?(.@(lzma|Z)))' break ;; --rebuild|--recompile) ext='@(?(no)src.r|s)pm' break ;; esac done [[ -n $ext ]] && _filedir $ext } && complete -F _rpmbuild rpmbuild rpmbuild-md5 # ex: ts=4 sw=4 et filetype=sh
Upload File
Create Folder