From: Yu Watanabe Date: Thu, 13 Dec 2018 17:17:30 +0000 (+0900) Subject: bash-completion: loginctl: suggest argument for --output option X-Git-Tag: v240~64^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfeebf55d91748986426aedf8c1d739f396e8a3a;p=thirdparty%2Fsystemd.git bash-completion: loginctl: suggest argument for --output option --- diff --git a/shell-completion/bash/loginctl b/shell-completion/bash/loginctl index 1f5b46620cb..c7593ab4089 100644 --- a/shell-completion/bash/loginctl +++ b/shell-completion/bash/loginctl @@ -55,6 +55,9 @@ _loginctl () { --property|-p) comps='' ;; + --output|-o) + comps=$( loginctl --output=help 2>/dev/null ) + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0