Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh virsh completion



# myllynen@xxxxxxxxxx / 2016-07-11 14:52:02 +0300:
> I think it's pretty good and hopefully the caching approach is sane (of
> course it'd be nice to get rid of that awk call but no biggie).

> +  _cache_virsh_cmds=( ${="$(virsh help 2>&1 | awk '!/:/ {print $1}')"} )

${${${${(f):-"$(virsh help)"}:#*:}/# ##}/ *}

-- 
roman



Messages sorted by: Reverse Date, Date, Thread, Author