shell-completion: systemctl: show completions for user
in global
mode
This commit is contained in:
parent
8d20def9fe
commit
93557fcb5d
|
@ -106,6 +106,8 @@ _systemctl () {
|
|||
|
||||
if __contains_word "--user" ${COMP_WORDS[*]}; then
|
||||
mode=--user
|
||||
elif __contains_word "--global" ${COMP_WORDS[*]}; then
|
||||
mode=--user
|
||||
else
|
||||
mode=--system
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue