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
|
if __contains_word "--user" ${COMP_WORDS[*]}; then
|
||||||
mode=--user
|
mode=--user
|
||||||
|
elif __contains_word "--global" ${COMP_WORDS[*]}; then
|
||||||
|
mode=--user
|
||||||
else
|
else
|
||||||
mode=--system
|
mode=--system
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue