Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
Date: Mon, 11 Jul 2016 17:03:31 +0200
From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: Marko Myllynen <myllynen@redhat.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: zsh virsh completion
Message-ID: <20160711150331.GD1537@isis.sigpipe.cz>
References: <8eb6dce0-50d7-5ab2-503a-194c1de2e45d@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <8eb6dce0-50d7-5ab2-503a-194c1de2e45d@redhat.com>
User-Agent: Mutt/1.6.1 (2016-04-27)
X-Seq: zsh-workers 38826

# myllynen@redhat.com / 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

