summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-10-29 10:29:29 +0300
committerEvgeny Vereshchagin <evvers@ya.ru>2015-10-30 04:55:32 +0300
commit93557fcb5d124823f061adfa854891eda338c15e (patch)
treeb9cb122d2eac791310a9e93b5ce17ef430257b4e
parent8d20def9fee8893d30d25ee38eb9d84323328fad (diff)
shell-completion: systemctl: show completions for `user` in `global` mode
-rw-r--r--shell-completion/bash/systemctl.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index 29bb41c436..cfe003544d 100644
--- a/shell-completion/bash/systemctl.in
+++ b/shell-completion/bash/systemctl.in
@@ -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