]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: systemctl: show completions for `user` in `global` mode 1720/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 29 Oct 2015 07:29:29 +0000 (10:29 +0300)
committerEvgeny Vereshchagin <evvers@ya.ru>
Fri, 30 Oct 2015 01:55:32 +0000 (04:55 +0300)
shell-completion/bash/systemctl.in

index 29bb41c436da28093c46b39c79a33a28d79fe761..cfe003544d1f41329588ce1b1bc22d4badd99282 100644 (file)
@@ -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