about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-11-25 09:45:32 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-11-25 09:45:32 +0000
commitd6cf3da7150bd4c489d1c0df116a8f6026473671 (patch)
tree0f6e0d480a4d7475fc98c7e4e72d2cf2f30e2619 /Completion
parentfa503c84d3e796372d45c058dd65c90720e074ae (diff)
downloadzsh-d6cf3da7150bd4c489d1c0df116a8f6026473671.tar.gz
zsh-d6cf3da7150bd4c489d1c0df116a8f6026473671.tar.xz
zsh-d6cf3da7150bd4c489d1c0df116a8f6026473671.zip
22022: completion for dchroot
Diffstat (limited to 'Completion')
-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