Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: update completions for some common Unix commands
- X-seq: zsh-workers 35040
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: PATCH: update completions for some common Unix commands
- Date: Tue, 5 May 2015 21:54:45 +0000
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- 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=
- In-reply-to: <10432.1430474309@quattro>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <10432.1430474309@quattro>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author