X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemctl;h=e1c842006e3ee885401723d813425e84355e3ad6;hb=1b99214789101976d6bbf75c351279584b071998;hp=0dfc868b4f9d35dc193e4a2ae021fb260baeabc5;hpb=0088d63151e088d62104d88f866e9eb049091c22;p=elogind.git diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl index 0dfc868b4..e1c842006 100644 --- a/shell-completion/bash/systemctl +++ b/shell-completion/bash/systemctl @@ -56,7 +56,7 @@ __get_all_units () { __systemctl $1 list-units --all \ __get_active_units () { __systemctl $1 list-units \ | { while read -r a b; do echo " $a"; done; }; } __get_startable_units () { __systemctl $1 list-units --all -t service,timer,socket,mount,automount,path,snapshot,swap \ - | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed " ]] && echo " $a"; done; }; } + | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed" ]] && echo " $a"; done; }; } __get_failed_units () { __systemctl $1 list-units \ | { while read -r a b c d; do [[ $c == "failed" ]] && echo " $a"; done; }; } __get_enabled_units () { __systemctl $1 list-unit-files \ @@ -73,7 +73,7 @@ _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' + --quiet -q --privileged -P --system --user --version --runtime --recursive -r' [ARG]='--host -H --kill-who --property -p --signal -s --type -t --state --root' )