X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fzsh%2F_hostnamectl;h=a7217a1999e14a28860dec1b79c5be6d2da3945f;hp=be8687609eb39f172c3b9067d56eb33ea6578027;hb=5ad096b3f1331b175340129a8c9a5a9d711e5415;hpb=1ed774956406941d4812a3fb4493d2915f130f12 diff --git a/shell-completion/zsh/_hostnamectl b/shell-completion/zsh/_hostnamectl index be8687609..a7217a199 100644 --- a/shell-completion/zsh/_hostnamectl +++ b/shell-completion/zsh/_hostnamectl @@ -18,13 +18,21 @@ _hostnamectl_set-icon-name() { _hostnamectl_set-chassis() { if (( CURRENT <= 3 )); then - _chassis=( desktop laptop server tablet handset watch vm container ) + _chassis=( desktop laptop server tablet handset watch embedded vm container ) _describe chassis _chassis else _message "no more options" 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 "$@"