summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash-completion12
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: