bash-completion: update options for bootctl
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 26 May 2019 19:58:30 +0000 (04:58 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 May 2019 07:49:57 +0000 (09:49 +0200)
shell-completion/bash/bootctl

index 7e568dc..27b7390 100644 (file)
@@ -31,13 +31,13 @@ _bootctl() {
     local i verb comps
     local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
     local -A OPTS=(
-        [STANDALONE]='-h --help --no-variables -p --print-path --version --no-pager'
-        [ARG]='--path'
+        [STANDALONE]='-h --help --no-variables -p --print-esp-path -x --print-boot-path --version --no-pager'
+        [ARG]='--esp-path --boot-path'
     )
 
     if __contains_word "$prev" ${OPTS[ARG]}; then
         case $prev in
-            --path)
+            --esp-path|--boot-path)
                 if [[ -z $cur ]]; then
                     comps=$(compgen -A directory -- "/" )
                 else