summaryrefslogtreecommitdiff
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-11 08:25:20 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-11 09:22:00 -0400
commit1ed774956406941d4812a3fb4493d2915f130f12 (patch)
treea9f7a8286351c2e94be2ec9a235dc63c105887d1 /shell-completion/bash
parentdc5cd2b77288dc85c82cb95810cd14caee311e7e (diff)
shell-completion,man: beef up chassis completions and description
Parameters to hostnamectl command are not optional and should not be marked as such in the man page.
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/hostnamectl3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl
index 9c75da9e7..22f8f06b6 100644
--- a/shell-completion/bash/hostnamectl
+++ b/shell-completion/bash/hostnamectl
@@ -39,6 +39,7 @@ _hostnamectl() {
[STANDALONE]='status'
[ICONS]='set-icon-name'
[NAME]='set-hostname'
+ [CHASSIS]='set-chassis'
)
for ((i=0; i < COMP_CWORD; i++)); do
@@ -50,6 +51,8 @@ _hostnamectl() {
if [[ -z $verb ]]; then
comps=${VERBS[*]}
+ elif __contains_word "$verb" ${VERBS[CHASSIS]}; then
+ comps='desktop laptop server tablet handset watch vm container'
elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[ICONS]} ${VERBS[NAME]}; then
comps=''
fi