From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8690 invoked by alias); 5 May 2015 22:03:13 -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: 35040 Received: (qmail 16171 invoked from network); 5 May 2015 22:03:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=AR2MKpchC1tBEMQd5SACg24F4YU=; b=RSV/ye 2hVuK4CPCGCgbOwujeTKBk4Uf55eExowG2u2j9mzEYQJlCxfFEwxkTesrMRgktpB R5ipfby08jAxRfaASfwhUH7SZveDQm4IGZ24keLjx7mlkDTvKcDjr+kiVrsXQ4RM TYGK1JoZFOGUiUBwKnO9YnIBtq0hb15vrrLL4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=AR2MKpchC1tBEMQd5SACg24F4YU=; b=ht7TR E4vRdrSE8dU/k8KK0dB+Rq7/AcH2oooa4PGPjEQ4HFj68IlyvRNgyQ8He0UpGiFu CIBy4BOAn81onIlMME2peYVpjhNc1WF28hJUIvtLC5uVrytT50ajwN+slcYT8oIw XiidN+Vmog8azBfvbWg2ZpIQNs1wxp4T0L6gpE= X-Sasl-enc: ceD9GuvTFx9Ttr53MOm/43q6JohiLz/IC7wiioK867Uw 1430862888 Date: Tue, 5 May 2015 21:54:45 +0000 From: Daniel Shahaf To: Oliver Kiddle Cc: Zsh workers Subject: Re: PATCH: update completions for some common Unix commands Message-ID: <20150505215445.GC2020@tarsus.local2> References: <10432.1430474309@quattro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10432.1430474309@quattro> User-Agent: Mutt/1.5.21 (2010-09-15) Oliver Kiddle wrote on Fri, May 01, 2015 at 11:58:29 +0200: > diff --git a/Completion/BSD/Type/_jails b/Completion/BSD/Type/_jails > new file mode 100644 > index 0000000..36bffec > --- /dev/null > +++ b/Completion/BSD/Type/_jails > @@ -0,0 +1,5 @@ > +#autoload > + > +jails=( ${${${${(f)"$(_call_program jails jls -n)"}##*jid=}/ name=/:}%% *} ) > + > +_describe -t jails jail jails "$@" Maybe use 'jls jid name' so as to not rely on 'jid' and 'name' being consecutive in the output of 'jls -n'? Should jail names be offered as completions, rather than just as descriptions? I think most jail-related commands commands accept either jname or jid to identify a jail.