1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00
zsh/Completion/Debian/Command/_dchroot
2005-11-25 09:45:32 +00:00

18 lines
551 B
Text

#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