X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemctl;h=992e52dbb08c87d554125bffb0938f275b62ff17;hb=5ba85788ab3b934db90b42508c7a7892277b5e94;hp=86ea33c6e2c5fcba6bb71a121840fa53e0cec78d;hpb=86cb0691b71873c6fe30a103dc98153e2d9ab507;p=elogind.git diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl index 86ea33c6e..992e52dbb 100644 --- a/shell-completion/bash/systemctl +++ b/shell-completion/bash/systemctl @@ -73,8 +73,8 @@ _systemctl () { local -A OPTS=( [STANDALONE]='--all -a --reverse --after --before --defaults --fail --ignore-dependencies --failed --force -f --full -l --global --help -h --no-ask-password --no-block --no-legend --no-pager --no-reload --no-wall - --quiet -q --privileged -P --system --user --version --runtime' - [ARG]='--host -H --kill-mode --kill-who --property -p --signal -s --type -t --state --root' + --quiet -q --privileged -P --system --user --version --runtime --recursive -r' + [ARG]='--host -H --kill-who --property -p --signal -s --type -t --state --root' ) if __contains_word "--user" ${COMP_WORDS[*]}; then @@ -99,9 +99,6 @@ _systemctl () { --kill-who) comps='all control main' ;; - --kill-mode) - comps='control-group process' - ;; --root) comps=$(compgen -A directory -- "$cur" ) compopt -o filenames @@ -141,12 +138,12 @@ _systemctl () { emergency exit halt hibernate hybrid-sleep kexec list-jobs list-sockets list-timers list-units list-unit-files poweroff reboot rescue show-environment suspend get-default' - [NAME]='snapshot load' + [NAME]='snapshot' [FILE]='link' [TARGETS]='set-default' ) - for ((i=0; i <= COMP_CWORD; i++)); do + for ((i=0; i < COMP_CWORD; i++)); do if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} && ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then verb=${COMP_WORDS[i]}