diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 07:34:30 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-01-10 15:10:19 +0100 |
commit | 92360836a0abe0652be54df7b347cab54a7edee7 (patch) | |
tree | 816a7cfec5c85495b371e10321c5fd1cfe6b6417 /shell-completion | |
parent | timesyncd: avoid signed/unsigned comparison (#7842) (diff) | |
download | systemd-92360836a0abe0652be54df7b347cab54a7edee7.tar.xz systemd-92360836a0abe0652be54df7b347cab54a7edee7.zip |
bash-completion: bootctl: support more options and verbs
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/bootctl | 5 |
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 |