Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#570878: zsh: Please add completion for pbuilder/cowbuilder
- X-seq: zsh-workers 27744
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Cyril Brulebois <kibi@xxxxxxxxxx>, 570878@xxxxxxxxxxxxxxx
- Subject: Re: Bug#570878: zsh: Please add completion for pbuilder/cowbuilder
- Date: Mon, 22 Feb 2010 00:31:53 +0000
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20100222001206.7382.13881.reportbug@xxxxxxxxxxxxxxxxxxxxx>
- 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: <20100222001206.7382.13881.reportbug@xxxxxxxxxxxxxxxxxxxxx>
On Mon, Feb 22, 2010 at 01:12:06AM +0100, Cyril Brulebois wrote:
> it'd be nice to have some completion support for pbuilder/cowbuilder
> in zsh. At the very least, --build/--update/--basepath come to mind
> for everyday use.
This is incomplete. I don't ever use cowbuilder so I'm not yet familiar
with its differences, but I'll take a look later on this week.
Index: Completion/Debian/Command/_pbuilder
===================================================================
RCS file: Completion/Debian/Command/_pbuilder
diff -N Completion/Debian/Command/_pbuilder
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_pbuilder 22 Feb 2010 00:29:29 -0000
@@ -0,0 +1,32 @@
+#compdef pbuilder
+
+local expl
+
+if (( CURRENT == 2 )); then
+ _wanted tag expl 'pbuilder command' \
+ compadd create update build execute clean login dumpconfig debuild \
+ --create --update --build --execute --clean --login --dumpconfig --debuild
+else
+ compset -n 1
+ _arguments \
+ '--basetgz:location:_files -g "*.tgz"' \
+ '--buildplace:location:_files -/' \
+ '--buildresult:location:_files -/' \
+ '--mirror:URL:_urls' \
+ '--othermirror:URL:_urls' \
+ '--distribution:suite:(breezy dapper edgy etch feisty gutsy hardy hoary intrepid jaunty karmic lenny lucid potato sarge sid squeeze warty woody' \
+ '--architecture:architecture:(alpha amd64 armel hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc)' \
+ '--components:component:(main contrib non-free)' \
+ '--override-config' \
+ '--hookdir:location:_files -/' \
+ '--debbuildopts:dpkg-buildpackage options:' \
+ '--logfile:log file:_files' \
+ '--binary-arch' \
+ '--bindmounts:bind mountpoints:_files -/' \
+ '--debootstrapopts:debootstrap options:' \
+ '--debootstrap:debootstrap implementation:(debootstrap cdebootstrap)' \
+ '--save-after-login' \
+ '--save-after-exec' \
+ '--autocleanaptcache' \
+ '*:source package:_files -g "*.dsc"'
+fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author