From 18330b0137e2fb57ffc4aae6ab519226ad948ee2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 28 Aug 2014 10:19:51 +0200 Subject: [PATCH] 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. --- src/_virsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_virsh b/src/_virsh index 06a03a5..9f90867 100644 --- a/src/_virsh +++ b/src/_virsh @@ -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 $? }