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:
Vincent Bernat 2014-08-28 10:19:51 +02:00
parent 29c11456af
commit 18330b0137
1 changed files with 1 additions and 1 deletions

View File

@ -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 $?
}