From 044267cecb0e44eab578dd091289cae9e8b963ff Mon Sep 17 00:00:00 2001 From: Christopher Bock Date: Sat, 12 Apr 2025 13:20:15 +0200 Subject: github #131: add missing options --- Completion/Unix/Command/_libvirt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_libvirt') 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 -- cgit v1.2.3-70-g09d2