PATH:
usr
/
share
/
bash-completion
/
completions
# bash completion for GNU find -*- shell-script -*- # This makes heavy use of ksh style extended globs and contains Linux specific # code for completing the parameter to the -fstype option. _find() { local cur prev words cword _init_completion || return case $prev in -maxdepth|-mindepth) COMPREPLY=( $( compgen -W '{0..9}' -- "$cur" ) ) return 0 ;; -newer|-anewer|-cnewer|-fls|-fprint|-fprint0|-fprintf|-name|-iname|\ -lname|-ilname|-wholename|-iwholename|-samefile) _filedir return 0 ;; -fstype) _fstypes [[ $OSTYPE == *bsd* ]] && \ COMPREPLY+=( $( compgen -W 'local rdonly' -- "$cur" ) ) return 0 ;; -gid) _gids return 0 ;; -group) COMPREPLY=( $( compgen -g -- "$cur" 2>/dev/null) ) return 0 ;; -xtype|-type) COMPREPLY=( $( compgen -W 'b c d p f l s' -- "$cur" ) ) return 0 ;; -uid) _uids return 0 ;; -user) COMPREPLY=( $( compgen -u -- "$cur" ) ) return 0 ;; -exec|-execdir|-ok|-okdir) words=(words[0] "$cur") cword=1 _command return 0 ;; -[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename|\ -ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size|\ -used|-printf|-context) # do nothing, just wait for a parameter to be given return 0 ;; -regextype) COMPREPLY=( $( compgen -W 'emacs posix-awk posix-basic posix-egrep posix-extended' -- "$cur" ) ) return 0 ;; esac _expand || return 0 local i exprfound=false # set exprfound to true if there is already an expression present for i in ${words[@]}; do [[ "$i" = [-\(\),\!]* ]] && exprfound=true && break done # handle case where first parameter is not a dash option if ! $exprfound && [[ "$cur" != [-\(\),\!]* ]]; then _filedir -d return 0 fi # complete using basic options COMPREPLY=( $( compgen -W '-daystart -depth -follow -help -ignore_readdir_race -maxdepth -mindepth -mindepth -mount -noignore_readdir_race -noleaf -regextype -version -warn -nowarn -xdev -amin -anewer -atime -cmin -cnewer -ctime -empty -executable -false -fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename -links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm -readable -regex -samefile -size -true -type -uid -used -user -wholename -writable -xtype -context -delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir -print -print0 -printf -prune -quit' -- "$cur" ) ) if [[ ${#COMPREPLY[@]} -ne 0 ]]; then # this removes any options from the list of completions that have # already been specified somewhere on the command line, as long as # these options can only be used once (in a word, "options", in # opposition to "tests" and "actions", as in the find(1) manpage). local -A onlyonce=( [-daystart]=1 [-depth]=1 [-follow]=1 [-help]=1 [-ignore_readdir_race]=1 [-maxdepth]=1 [-mindepth]=1 [-mount]=1 [-noignore_readdir_race]=1 [-noleaf]=1 [-nowarn]=1 [-regextype]=1 [-version]=1 [-warn]=1 [-xdev]=1 ) local j for i in "${words[@]}"; do [[ $i && ${onlyonce[$i]} ]] || continue for j in ${!COMPREPLY[@]}; do [[ ${COMPREPLY[j]} == $i ]] && unset COMPREPLY[j] done done fi _filedir return 0 } && complete -F _find find # ex: ts=4 sw=4 et filetype=sh
[+]
..
[-] swaplabel
[edit]
[-] ping
[edit]
[-] gapplication
[edit]
[-] renice
[edit]
[-] gdbus
[edit]
[-] resizepart
[edit]
[-] gsettings
[edit]
[-] lvrename
[edit]
[-] tc
[edit]
[-] lvresize
[edit]
[-] rpm
[edit]
[-] lvs
[edit]
[-] yum
[edit]
[-] rev
[edit]
[-] ssh
[edit]
[-] yummain.py
[edit]
[-] tailf
[edit]
[-] addpart
[edit]
[-] taskset
[edit]
[-] blkdiscard
[edit]
[-] ul
[edit]
[-] sudo
[edit]
[-] blkid
[edit]
[-] unshare
[edit]
[-] blockdev
[edit]
[-] lvscan
[edit]
[-] cal
[edit]
[-] utmpdump
[edit]
[-] cfdisk
[edit]
[-] uuidgen
[edit]
[-] chcpu
[edit]
[-] wdctl
[edit]
[-] chfn
[edit]
[-] whereis
[edit]
[-] chrt
[edit]
[-] wipefs
[edit]
[-] chsh
[edit]
[-] mdadm
[edit]
[-] col
[edit]
[-] write
[edit]
[-] colcrt
[edit]
[-] zramctl
[edit]
[-] colrm
[edit]
[-] dracut
[edit]
[-] column
[edit]
[-] lsinitrd
[edit]
[-] ctrlaltdel
[edit]
[-] kmod
[edit]
[-] vgck
[edit]
[-] delpart
[edit]
[-] bootctl
[edit]
[-] dmesg
[edit]
[-] busctl
[edit]
[-] eject
[edit]
[-] coredumpctl
[edit]
[-] fallocate
[edit]
[-] hostnamectl
[edit]
[-] fdformat
[edit]
[-] journalctl
[edit]
[-] fdisk
[edit]
[-] kernel-install
[edit]
[-] findmnt
[edit]
[-] localectl
[edit]
[-] flock
[edit]
[-] loginctl
[edit]
[-] fsck
[edit]
[-] machinectl
[edit]
[-] fsck.cramfs
[edit]
[-] systemctl
[edit]
[-] fsck.minix
[edit]
[-] systemd-analyze
[edit]
[-] fsfreeze
[edit]
[-] systemd-cat
[edit]
[-] fstrim
[edit]
[-] systemd-cgls
[edit]
[-] getopt
[edit]
[-] systemd-cgtop
[edit]
[-] hexdump
[edit]
[-] systemd-delta
[edit]
[-] hwclock
[edit]
[-] systemd-detect-virt
[edit]
[-] ionice
[edit]
[-] systemd-nspawn
[edit]
[-] ipcrm
[edit]
[-] systemd-run
[edit]
[-] ipcs
[edit]
[-] timedatectl
[edit]
[-] isosize
[edit]
[-] udevadm
[edit]
[-] ldattach
[edit]
[-] lsmcli
[edit]
[-] logger
[edit]
[-] grub
[edit]
[-] vgs
[edit]
[-] look
[edit]
[-] nmcli
[edit]
[-] losetup
[edit]
[-] tuned-adm
[edit]
[-] lsblk
[edit]
[-] firewall-cmd
[edit]
[-] lscpu
[edit]
[-] bzip2
[edit]
[-] lslocks
[edit]
[-] chage
[edit]
[-] mcookie
[edit]
[-] chgrp
[edit]
[-] mkfs
[edit]
[-] chown
[edit]
[-] mkfs.cramfs
[edit]
[-] chpasswd
[edit]
[-] mkfs.minix
[edit]
[-] cpio
[edit]
[-] wget
[edit]
[-] mkswap
[edit]
[-] curl
[edit]
[-] xz
[edit]
[-] more
[edit]
[-] find
[edit]
[-] mountpoint
[edit]
[-] groupadd
[edit]
[-] namei
[edit]
[-] groupdel
[edit]
[-] nsenter
[edit]
[-] groupmod
[edit]
[-] partx
[edit]
[-] gzip
[edit]
[-] pivot_root
[edit]
[-] ip
[edit]
[-] prlimit
[edit]
[-] mount
[edit]
[-] raw
[edit]
[-] iptables
[edit]
[-] readprofile
[edit]
[-] lvchange
[edit]
[-] rename
[edit]
[-] rtcwake
[edit]
[-] lvcreate
[edit]
[-] runuser
[edit]
[-] lvdisplay
[edit]
[-] script
[edit]
[-] swapon
[edit]
[-] scriptreplay
[edit]
[-] lvextend
[edit]
[-] setarch
[edit]
[-] lvm
[edit]
[-] setpriv
[edit]
[-] lvmdiskscan
[edit]
[-] setsid
[edit]
[-] lvreduce
[edit]
[-] setterm
[edit]
[-] lvremove
[edit]
[-] sfdisk
[edit]
[-] passwd
[edit]
[-] su
[edit]
[-] pvscan
[edit]
[-] pvs
[edit]
[-] pvchange
[edit]
[-] pvcreate
[edit]
[-] pvdisplay
[edit]
[-] pvmove
[edit]
[-] pvremove
[edit]
[-] quota
[edit]
[-] quotacheck
[edit]
[-] quotaoff
[edit]
[-] quotaon
[edit]
[-] repquota
[edit]
[-] setquota
[edit]
[-] tcpdump
[edit]
[-] umount
[edit]
[-] useradd
[edit]
[-] userdel
[edit]
[-] usermod
[edit]
[-] vgcfgbackup
[edit]
[-] vgcfgrestore
[edit]
[-] vgchange
[edit]
[-] vgconvert
[edit]
[-] vgcreate
[edit]
[-] vgdisplay
[edit]
[-] vgexport
[edit]
[-] vgextend
[edit]
[-] vgimport
[edit]
[-] vgmerge
[edit]
[-] vgmknodes
[edit]
[-] vgreduce
[edit]
[-] vgremove
[edit]
[-] vgrename
[edit]
[-] vgscan
[edit]
[-] vgsplit
[edit]
[-] umount.linux
[edit]
[-] semanage
[edit]
[-] setsebool
[edit]