diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 02:17:30 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 02:18:35 +0900 |
commit | dfeebf55d91748986426aedf8c1d739f396e8a3a (patch) | |
tree | af91a7a6543f6adb75db3c67863268738cd17c01 /shell-completion | |
parent | fad73e9deb6b2ddc5bd171c754c960f4d2f0b062 (diff) | |
download | systemd-dfeebf55d91748986426aedf8c1d739f396e8a3a.tar.gz |
bash-completion: loginctl: suggest argument for --output option
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/loginctl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell-completion/bash/loginctl b/shell-completion/bash/loginctl index 1f5b46620c..c7593ab408 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 |