summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-10 15:34:30 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-01-10 23:10:19 +0900
commit92360836a0abe0652be54df7b347cab54a7edee7 (patch)
tree816a7cfec5c85495b371e10321c5fd1cfe6b6417 /shell-completion
parentedd50d5e243916315c7feba7313be1ee49d7cf9f (diff)
bash-completion: bootctl: support more options and verbs
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/bootctl5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell-completion/bash/bootctl b/shell-completion/bash/bootctl
index 34b1b552d9..9d7b51bcec 100644
--- a/shell-completion/bash/bootctl
+++ b/shell-completion/bash/bootctl
@@ -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