From 2e68a49dc872db55708f49ec4976fc38b32a75ef Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 14 Dec 2018 02:32:15 +0900 Subject: [PATCH] bash-completion: systemctl: use --output=help to show suggestions --- shell-completion/bash/systemctl.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 8756bfb8a56..0e58e2ba4cb 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 ) -- 2.47.3