about summary refs log tree commit diff
path: root/Completion/Debian/Command/_dchroot
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-11-25 15:17:18 +0000
committerClint Adams <clint@users.sourceforge.net>2005-11-25 15:17:18 +0000
commit59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a (patch)
treec6d294c3f61791e8697abcea975a770776b2a795 /Completion/Debian/Command/_dchroot
parentd7db8f21d1ad60e71d98f2ccde51c1983fc858db (diff)
downloadzsh-59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a.tar.gz
zsh-59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a.tar.xz
zsh-59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a.zip
import dchroot, dlocate, dpkg-cross, madison, piuparts, toolchain-source,
bzr, cplay, date, quilt, urvt from HEAD
Diffstat (limited to 'Completion/Debian/Command/_dchroot')
-rw-r--r--Completion/Debian/Command/_dchroot18
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_dchroot b/Completion/Debian/Command/_dchroot
new file mode 100644
index 000000000..7a6973f1b
--- /dev/null
+++ b/Completion/Debian/Command/_dchroot
@@ -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