about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2010-02-22 00:34:32 +0000
committerClint Adams <clint@users.sourceforge.net>2010-02-22 00:34:32 +0000
commit86699261ba0337cac77693b0d2e505d7d108a565 (patch)
tree7ab6b4ac6fbb4fb074f8c781497fb925ca7b8e9a
parent8a0629c12b0d7318946212975fab9ec1b4850ff9 (diff)
downloadzsh-86699261ba0337cac77693b0d2e505d7d108a565.tar.gz
zsh-86699261ba0337cac77693b0d2e505d7d108a565.tar.xz
zsh-86699261ba0337cac77693b0d2e505d7d108a565.zip
27744: completion for pbuilder.
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Debian/Command/_pbuilder32
2 files changed, 38 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 349cfeb6e..77bdbfc95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-22  Clint Adams  <clint@zsh.org>
+
+	* 27744: Completion/Debian/Command/_pbuilder: completion for
+	pbuilder.
+
 2010-02-21  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* Frank: 27731: Functions/VCS_Info/vcs_info: turn off
@@ -12798,5 +12803,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4910 $
+* $Revision: 1.4911 $
 *****************************************************
diff --git a/Completion/Debian/Command/_pbuilder b/Completion/Debian/Command/_pbuilder
new file mode 100644
index 000000000..225744f23
--- /dev/null
+++ b/Completion/Debian/Command/_pbuilder
@@ -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