diff options
author | Sebastien Luttringer <seblu@seblu.net> | 2011-06-26 23:15:29 +0200 |
---|---|---|
committer | Sebastien Luttringer <seblu@seblu.net> | 2011-06-26 23:15:56 +0200 |
commit | f58be6cc8d802c4c48edd594aab41408df30e954 (patch) | |
tree | 801510da41af062631c02d679798bcde18733f8e /bash-completion | |
parent | 10986ecadeb7cc3ac39fa55f2c4a873b54323f2f (diff) | |
download | mkinitcpio-f58be6cc8d802c4c48edd594aab41408df30e954.tar.gz mkinitcpio-f58be6cc8d802c4c48edd594aab41408df30e954.tar.xz |
Add lsinitcpio bash completion
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bash-completion b/bash-completion index ddb60e2..50cbb8e 100644 --- a/bash-completion +++ b/bash-completion @@ -1,5 +1,16 @@ # mkinitcpio bash completion by Seblu <seblu@seblu.net> +_lsinitcpio () +{ + local action="-a -h -v -x" + local cur="${COMP_WORDS[COMP_CWORD]}" + local caction="${COMP_WORDS[COMP_CWORD]}" + case "$caction" in + -*) COMPREPLY=($(compgen -W "${action}" -- "$cur"));; + *) _filedir;; + esac +} + _mkinitcpio () { local action="-c -k -s -b -g -a -p -m -S -v -M -L -H -h" @@ -16,5 +27,6 @@ _mkinitcpio () esac } complete -F _mkinitcpio mkinitcpio +complete -F _lsinitcpio lsinitcpio # vim: set ts=2 sw=2 ft=sh noet: |