mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-06 07:58:40 +08:00
virsh: inactive domains don't have an ID
This commit is contained in:
1 parent
18330b0137
commit
1bcfd00579
1 file changed
+1
-1
+1
-1
@@ -40,7 +40,7 @@ local -a args reply
|
||||
|
||||
function _virsh-domains() {
|
||||
local -a out
|
||||
out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9]## ##}%% *} )
|
||||
out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9-]## ##}%% *} )
|
||||
_describe -t domains "${${1#--}:-running} domains" out
|
||||
return $?
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user