summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemctl.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-30 22:32:09 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-30 22:32:09 +0200
commit23a749f2857088547c8ef3966e96b37c71510a1b (patch)
treea3739420ab6e9a18e997b3b54e179c9b1905d21c /shell-completion/bash/systemctl.in
parent6ed796c827f7e89a7900713b132301bced1a73c6 (diff)
parent4ed2f1b1f106b84276eaf8cc4d27cca54653845e (diff)
Merge pull request #1419 from keszybz/shell-completion
Shell completion tweaks
Diffstat (limited to 'shell-completion/bash/systemctl.in')
-rw-r--r--shell-completion/bash/systemctl.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index 4d63e2870f..29bb41c436 100644
--- a/shell-completion/bash/systemctl.in
+++ b/shell-completion/bash/systemctl.in
@@ -87,8 +87,8 @@ __get_all_unit_files () { { __systemctl $1 list-unit-files; } | { while read -r
__get_machines() {
local a b
- (machinectl list-images --no-legend --no-pager; machinectl list --no-legend --no-pager) | \
- { while read a b; do echo " $a"; done; } | sort -u;
+ { machinectl list-images --no-legend --no-pager; machinectl list --no-legend --no-pager; } | \
+ { while read a b; do echo " $a"; done; }
}
_systemctl () {
@@ -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