shell-completion: busctl

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-12-05 21:33:08 -05:00
parent ff6c70f18b
commit 86cb0691b7
6 changed files with 134 additions and 4 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ _loginctl () {
[ATTACH]='attach'
)
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]}