diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-11 09:08:47 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-11 09:22:01 -0400 |
commit | ccb03ac39d5360433e62b8b82e474aa044421bd9 (patch) | |
tree | 8aec108945dca4ef1d5a2685e2fd91735e60fe9b /shell-completion | |
parent | 799298d6513e7d40125c19d46578bb870d047db4 (diff) |
shell-completion: add hostnamectl set-deployment
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/hostnamectl | 2 | ||||
-rw-r--r-- | shell-completion/zsh/_hostnamectl | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl index 22f8f06b69..a5e34600c8 100644 --- a/shell-completion/bash/hostnamectl +++ b/shell-completion/bash/hostnamectl @@ -38,7 +38,7 @@ _hostnamectl() { local -A VERBS=( [STANDALONE]='status' [ICONS]='set-icon-name' - [NAME]='set-hostname' + [NAME]='set-hostname set-deployment' [CHASSIS]='set-chassis' ) diff --git a/shell-completion/zsh/_hostnamectl b/shell-completion/zsh/_hostnamectl index be8687609e..e02f6de30e 100644 --- a/shell-completion/zsh/_hostnamectl +++ b/shell-completion/zsh/_hostnamectl @@ -25,6 +25,14 @@ _hostnamectl_set-chassis() { fi } +_hostnamectl_set-deployment() { + if (( CURRENT <= 3 )); then + _message "new environment" + else + _message "no more options" + fi +} + _hostnamectl_command() { local -a _hostnamectl_cmds _hostnamectl_cmds=( @@ -32,6 +40,7 @@ _hostnamectl_command() { "set-hostname:Set system hostname" "set-icon-name:Set icon name for host" "set-chassis:Set chassis type for host" + "set-deployment:Set deployment environment" ) if (( CURRENT == 1 )); then _describe -t commands 'hostnamectl commands' _hostnamectl_cmds || compadd "$@" |