]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: bootctl: support more options and verbs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 06:34:30 +0000 (15:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 14:10:19 +0000 (23:10 +0900)
shell-completion/bash/bootctl

index 34b1b552d94b0f8a041ecfbcefac695ed5e6733d..9d7b51bcec8eae492ba00b5dbd52598883cd5b43 100644 (file)
@@ -29,7 +29,8 @@ _bootctl() {
         local i verb comps
         local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
         local -A OPTS=(
-               [STANDALONE]='-h --help --version'
+                [STANDALONE]='-h --help --no-variables -p --print-path --version'
+                       [ARG]='--path'
         )
 
         if [[ "$cur" = -* ]]; then
@@ -38,7 +39,7 @@ _bootctl() {
         fi
 
         local -A VERBS=(
-                [STANDALONE]='status'
+                [STANDALONE]='help install list remove status update'
         )
 
         for ((i=0; i < COMP_CWORD; i++)); do