chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shell-completion: systemd-analyze verify, systemctl link
[elogind.git]
/
shell-completion
/
zsh
/
_hostnamectl
diff --git
a/shell-completion/zsh/_hostnamectl
b/shell-completion/zsh/_hostnamectl
index be8687609eb39f172c3b9067d56eb33ea6578027..e02f6de30edb9512041123de41ea2eb7685b029c 100644
(file)
--- a/
shell-completion/zsh/_hostnamectl
+++ b/
shell-completion/zsh/_hostnamectl
@@
-25,6
+25,14
@@
_hostnamectl_set-chassis() {
fi
}
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=(
_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-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 "$@"
)
if (( CURRENT == 1 )); then
_describe -t commands 'hostnamectl commands' _hostnamectl_cmds || compadd "$@"