summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_libvirt
diff options
context:
space:
mode:
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