mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 18:53:33 +08: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
|
||||
mode=--user
|
||||
elif __contains_word "--global" ${COMP_WORDS[*]}; then
|
||||
mode=--user
|
||||
else
|
||||
mode=--system
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user