summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-14 02:32:15 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-14 02:33:21 +0900
commit2e68a49dc872db55708f49ec4976fc38b32a75ef (patch)
tree98441dd06501077c50cd5e00e31fb6a5ef638766 /shell-completion
parentfdc33681ae1207bfaae842161a9346c1e4af7413 (diff)
downloadsystemd-2e68a49dc872db55708f49ec4976fc38b32a75ef.tar.gz
bash-completion: systemctl: use --output=help to show suggestions
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemctl.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index 8756bfb8a5..0e58e2ba4c 100644
--- a/shell-completion/bash/systemctl.in
+++ b/shell-completion/bash/systemctl.in
@@ -168,8 +168,7 @@ _systemctl () {
comps='full enable-only disable-only'
;;
--output|-o)
- comps='short short-full short-iso short-iso-precise short-precise short-monotonic short-unix verbose export json
- json-pretty json-sse json-seq cat with-unit'
+ comps=$( systemctl --output=help 2>/dev/null )
;;
--machine|-M)
comps=$( __get_machines )