X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemctl;h=dc7ef6689820054018d28c0e3159584bb09f3547;hb=abdab4f602745952030a37b1521cd0374d51d3ea;hp=86ea33c6e2c5fcba6bb71a121840fa53e0cec78d;hpb=86cb0691b71873c6fe30a103dc98153e2d9ab507;p=elogind.git diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl index 86ea33c6e..dc7ef6689 100644 --- a/shell-completion/bash/systemctl +++ b/shell-completion/bash/systemctl @@ -141,12 +141,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]}