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
+2 -2
View File
@@ -146,7 +146,7 @@ _systemctl () {
[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]}
@@ -154,7 +154,7 @@ _systemctl () {
fi
done
if [[ -z $verb ]]; then
if [[ -z $verb ]]; then
comps="${VERBS[*]}"
elif __contains_word "$verb" ${VERBS[ALL_UNITS]}; then