mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
22 lines
613 B
Text
22 lines
613 B
Text
#compdef pkginfo
|
|
|
|
_pkginfo() {
|
|
_arguments -s \
|
|
'(-q -r -x)-l[long listing]' \
|
|
'(-l -r -x)-q[quiet mode]' \
|
|
'(-l -q -x)-r[relocation base]' \
|
|
'(-l -q -r)-x[extracted listing]' \
|
|
'-c[category]:category: ' \
|
|
'-a[architecture]:architecture: ' \
|
|
'-v[version]:version: ' \
|
|
- set1 \
|
|
'(-p)-i[select completely installed packages]' \
|
|
'(-i)-p[select partially installed packages]' \
|
|
'-R[root path]:root path:_files -/' \
|
|
'*:package instance:_pkg_instance --_opts installed:set1--R' \
|
|
- set2 \
|
|
'-d[device]:device file:_files' \
|
|
'*:package instance:_pkg_instance --_opts uninstalled:set2--d'
|
|
}
|
|
|
|
_pkginfo "$@"
|