zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: update completions for some common Unix commands
Date: Tue, 5 May 2015 21:54:45 +0000	[thread overview]
Message-ID: <20150505215445.GC2020@tarsus.local2> (raw)
In-Reply-To: <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.


  reply	other threads:[~2015-05-05 22:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01  9:58 Oliver Kiddle
2015-05-05 21:54 ` Daniel Shahaf [this message]
2015-05-06 21:58   ` Oliver Kiddle
2015-05-07  0:40     ` Daniel Shahaf
2015-05-11  5:32       ` Eric Cook
2015-05-11 11:07         ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150505215445.GC2020@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).