bash-completion: systemctl: use --output=help to show suggestions

This commit is contained in:
Yu Watanabe 2018-12-14 02:32:15 +09:00
parent fdc33681ae
commit 2e68a49dc8

View file

@ -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 )