From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: PATCH: _dchroot
Date: Thu, 24 Nov 2005 15:40:47 +0100 [thread overview]
Message-ID: <25704.1132843247@localhost.localdomain> (raw)
New completion function for dchroot.
Oliver
Index: Completion/Debian/Command/_dchroot
===================================================================
RCS file: Completion/Debian/Command/_dchroot
diff -N Completion/Debian/Command/_dchroot
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_dchroot 23 Nov 2005 11:14:54 -0000
@@ -0,0 +1,18 @@
+#compdef dchroot
+
+local curcontext="$curcontext" state line expl ret=1
+
+_arguments -C \
+ '(-c -l -h -V)-a[execute in all known chroots]' \
+ '(-a -l -h -V)-c[execute in specified chroot]:chroot:->chroots' \
+ '(- *)-l[list available chroots]' \
+ '(-l)-d[preserve environment in chroot]' \
+ '(-h -l -V)-q[be quiet]' \
+ '(- *)-h[display help information]' \
+ '(- *)-V[display version information]' \
+ '*::args: _normal' && ret=0
+
+[[ -n $state ]] && _wanted chroots expl chroot \
+ compadd ${${$(dchroot -l)[3,-1]%,}:#\[*\]} && ret=0
+
+return ret
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
reply other threads:[~2005-11-24 14:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=25704.1132843247@localhost.localdomain \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/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).