summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-10-30 10:56:38 +0100
committerDaniel Mack <github@zonque.org>2015-10-30 10:56:38 +0100
commitcb2266f9312a12d7e80c688bf31a9d4b148d5ce6 (patch)
tree96311fe23d6f85ea934cf9018c1526dd317a1895
parentb133ea8e5f949fe5c37dbe6ff654d0f81d467fa8 (diff)
parent93557fcb5d124823f061adfa854891eda338c15e (diff)
downloadsystemd-cb2266f9312a12d7e80c688bf31a9d4b148d5ce6.tar.gz
Merge pull request #1720 from evverx/shell-completion-global-mode
shell-completion: systemctl: show completions for `user` in `global` …
-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