summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-14 02:17:30 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-14 02:18:35 +0900
commitdfeebf55d91748986426aedf8c1d739f396e8a3a (patch)
treeaf91a7a6543f6adb75db3c67863268738cd17c01 /shell-completion
parentfad73e9deb6b2ddc5bd171c754c960f4d2f0b062 (diff)
downloadsystemd-dfeebf55d91748986426aedf8c1d739f396e8a3a.tar.gz
bash-completion: loginctl: suggest argument for --output option
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/loginctl3
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