summaryrefslogtreecommitdiff
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 14:43:26 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 15:10:03 -0400
commit840b2c0e77911bef3056f358b8d16a3253e4ab70 (patch)
treeb6f8adccec9b56b30f694db3122a122b76d9dde1 /shell-completion/bash
parent7e55de3b9648a47286a9b49253f95b1e0d65287a (diff)
shell-completion: use systemctl --state=help
This way completion lists should stay up to date. Also use systemctl -t help to list types in zsh, as was already done in bash.
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/systemctl.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index 4d63e2870f..c8e17de7bc 100644
--- a/shell-completion/bash/systemctl.in
+++ b/shell-completion/bash/systemctl.in
@@ -119,9 +119,7 @@ _systemctl () {
comps=$(__systemctl $mode -t help)
;;
--state)
- comps='loaded not-found stub
- active inactive failed
- dead elapsed exited listening mounted plugged running waiting'
+ comps=$(__systemctl $mode --state=help)
;;
--job-mode)
comps='fail replace replace-irreversibly isolate