chiark / gitweb /
login: set pos-slot to fallback on pos-eviction
[elogind.git] / shell-completion / bash / systemctl
index 86ea33c6e2c5fcba6bb71a121840fa53e0cec78d..dc7ef6689820054018d28c0e3159584bb09f3547 100644 (file)
@@ -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]}