blob: 7eeb1371d8e6c8d4cb3cbce56d75e47eed662726 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#compdef dchroot-dsa
local expl context state line
typeset -A opt_args
_arguments -S \
'(-h --help)'{-h,--help}'[help]' \
'(-a --all)'{-a,--all}'[select all chroots]' \
'*'{-c,--chroot=}'[use specified chroot]:chroot:->chroot' \
'(-d --directory)'{-d,--directory=}'[directory to use]:dir:_files -W / -P /' \
'(-l --list)'{-l,--list}'[list available chroots]' \
'(-i --info)'{-i,--info}'[show information about selected chroots]' \
'(-p --listpaths)'{-p,--listpaths}'[print paths to available chroots]' \
'--config[dump configuration of selected chroots]' \
'(-q --quiet)'{-q,--quiet}'[quiet]' \
'(-v --verbose)'{-v,--verbose}'[verbose]' \
'(-V --version)'{-V,--version}'[version]' \
'(-):command name: _command_names -e' \
'*::arguments: _normal' && return 0
case "$state" in
(chroot)
_wanted tag expl 'chroot' \
compadd ${(os:,:)${${${"$(dchroot -l)"#Available chroots: }/\[*\]/}//[
]/}}
;;
esac
|