summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_libvirt
diff options
context:
space:
mode:
authorChristopher Bock <christopher@bocki.com>2025-04-12 13:20:15 +0200
committerOliver Kiddle <opk@zsh.org>2025-10-23 23:04:53 +0200
commit044267cecb0e44eab578dd091289cae9e8b963ff (patch)
tree21908fe8b72b48bd8679521946f999283a888ffe /Completion/Unix/Command/_libvirt
parentgithub #147: Clean up some leaked variables in completion functions (diff)
downloadzsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar
zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.gz
zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.bz2
zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.lz
zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.xz
zsh-044267cecb0e44eab578dd091289cae9e8b963ff.tar.zst
zsh-044267cecb0e44eab578dd091289cae9e8b963ff.zip
github #131: add missing options
Diffstat (limited to 'Completion/Unix/Command/_libvirt')
-rw-r--r--Completion/Unix/Command/_libvirt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_libvirt b/Completion/Unix/Command/_libvirt
index bd605b9c9..9c10f71e8 100644
--- a/Completion/Unix/Command/_libvirt
+++ b/Completion/Unix/Command/_libvirt
@@ -18,7 +18,7 @@ interact_cmds=(cd echo exit quit connect)
typeset -A dom_opts
dom_opts=(
- console " "
+ console --state-running
destroy " "
managedsave " "
reboot " "
@@ -197,7 +197,7 @@ case $state in
return 1
fi
# Allow passing domain without --domain with few of the most used commands
- if [[ $cmd == (destroy|edit|reboot|reset|start|shutdown) ]]; then
+ if [[ $cmd == (destroy|edit|reboot|reset|start|shutdown|console|guestinfo) ]]; then
if [[ $words[CURRENT-1] == $cmd ]]; then
values=( $(_call_program domains "noglob virsh $conn_opt list ${dom_opts[$cmd]:-"--all"} --name") )
[[ -n $values ]] && _wanted domains expl domain compadd ${=values} && return 0