PATH:
usr
/
share
/
bash-completion
/
completions
# # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh # # Copyright 2013 Red Hat, Inc. All rights reserved. # # 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, see <http://www.gnu.org/licenses/>. # __contains_word () { local word=$1; shift for w in $*; do [[ $w = $word ]] && return 0; done return 1 } _lsinitrd() { local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local -A OPTS=( [STANDALONE]='-s --size -h --help' [ARG]='-f --file -k --kver' ) if __contains_word "$prev" ${OPTS[ARG]}; then case $prev in --file|-f) comps=$(compgen -f -- "$cur") compopt -o filenames ;; --kver|-k) comps=$(cd /lib/modules; echo [0-9]*) ;; *) return 0 ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 fi if [[ $cur = -* ]]; then COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") ) return 0 fi comps=$(compgen -f -- "$cur") compopt -o filenames COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 } complete -F _lsinitrd lsinitrd
[-] addpart
[edit]
[-] renice
[edit]
[-] readprofile
[edit]
[-] setterm
[edit]
[-] loginctl
[edit]
[-] systemd-cat
[edit]
[-] column
[edit]
[-] look
[edit]
[-] dracut
[edit]
[-] ipcs
[edit]
[-] systemd-analyze
[edit]
[-] hexdump
[edit]
[-] taskset
[edit]
[-] machinectl
[edit]
[-] su
[edit]
[-] ipcrm
[edit]
[-] gsettings
[edit]
[-] hostnamectl
[edit]
[-] colrm
[edit]
[-] setsebool
[edit]
[-] rtcwake
[edit]
[+]
..
[-] ldattach
[edit]
[-] ctrlaltdel
[edit]
[-] hwclock
[edit]
[-] colcrt
[edit]
[-] cal
[edit]
[-] lscpu
[edit]
[-] partx
[edit]
[-] fdformat
[edit]
[-] findmnt
[edit]
[-] namei
[edit]
[-] unshare
[edit]
[-] dmesg
[edit]
[-] chrt
[edit]
[-] mcookie
[edit]
[-] ul
[edit]
[-] grub
[edit]
[-] whereis
[edit]
[-] more
[edit]
[-] nmcli
[edit]
[-] wipefs
[edit]
[-] blockdev
[edit]
[-] fallocate
[edit]
[-] gapplication
[edit]
[-] systemd-delta
[edit]
[-] chcpu
[edit]
[-] firewall-cmd
[edit]
[-] tuned-adm
[edit]
[-] cfdisk
[edit]
[-] nsenter
[edit]
[-] fsck.minix
[edit]
[-] mkfs
[edit]
[-] semanage
[edit]
[-] setpriv
[edit]
[-] lslocks
[edit]
[-] raw
[edit]
[-] zramctl
[edit]
[-] yummain.py
[edit]
[-] fstrim
[edit]
[-] scriptreplay
[edit]
[-] chsh
[edit]
[-] blkid
[edit]
[-] swapon
[edit]
[-] resizepart
[edit]
[-] setarch
[edit]
[-] prlimit
[edit]
[-] losetup
[edit]
[-] chfn
[edit]
[-] pip3
[edit]
[-] col
[edit]
[-] mkfs.cramfs
[edit]
[-] flock
[edit]
[-] kernel-install
[edit]
[-] tailf
[edit]
[-] yum
[edit]
[-] write
[edit]
[-] blkdiscard
[edit]
[-] tc
[edit]
[-] getopt
[edit]
[-] busctl
[edit]
[-] systemctl
[edit]
[-] uuidgen
[edit]
[-] fsfreeze
[edit]
[-] rpm
[edit]
[-] runuser
[edit]
[-] fsck
[edit]
[-] systemd-run
[edit]
[-] isosize
[edit]
[-] udevadm
[edit]
[-] mkswap
[edit]
[-] fsck.cramfs
[edit]
[-] timedatectl
[edit]
[-] wdctl
[edit]
[-] ionice
[edit]
[-] systemd-nspawn
[edit]
[-] fdisk
[edit]
[-] journalctl
[edit]
[-] logger
[edit]
[-] gdbus
[edit]
[-] pip
[edit]
[-] systemd-cgls
[edit]
[-] kmod
[edit]
[-] setsid
[edit]
[-] mountpoint
[edit]
[-] utmpdump
[edit]
[-] pip2
[edit]
[-] systemd-detect-virt
[edit]
[-] pivot_root
[edit]
[-] bootctl
[edit]
[-] localectl
[edit]
[-] sfdisk
[edit]
[-] script
[edit]
[-] coredumpctl
[edit]
[-] systemd-cgtop
[edit]
[-] rev
[edit]
[-] lsinitrd
[edit]
[-] swaplabel
[edit]
[-] gresource
[edit]
[-] mkfs.minix
[edit]
[-] pip2.7
[edit]
[-] eject
[edit]
[-] delpart
[edit]
[-] lsblk
[edit]
[-] pip3.6
[edit]
[-] rename
[edit]