From d6cf3da7150bd4c489d1c0df116a8f6026473671 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 25 Nov 2005 09:45:32 +0000 Subject: 22022: completion for dchroot --- ChangeLog | 4 ++++ Completion/Debian/Command/_dchroot | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Completion/Debian/Command/_dchroot diff --git a/ChangeLog b/ChangeLog index 0884af67b..9cb50b880 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-11-25 Oliver Kiddle + + * 22022: Completion/Debian/Command/_dchroot: completion for dchroot + 2005-11-24 Peter Stephenson * 22021: Functions/Zle/insert-unicode-char: back-to-back 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 -- cgit 1.4.1