mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
virsh: replace use of compadd with _describe
compadd is more low-level and doesn't setup completion descriptions correctly. Notably, the description is not put in bold.
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ local -a args reply
|
||||
function _virsh-domains() {
|
||||
local -a out
|
||||
out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9]## ##}%% *} )
|
||||
compadd -x "${${1#--}:-running} domains" -a out
|
||||
_describe -t domains "${${1#--}:-running} domains" out
|
||||
return $?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user