mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
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