From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8585 invoked by alias); 11 Jul 2016 15:09:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38826 Received: (qmail 14440 invoked from network); 11 Jul 2016 15:09:11 -0000 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 To: Marko Myllynen Cc: zsh workers 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) # 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