1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

21989: completion for dpkg-cross.

This commit is contained in:
Clint Adams 2005-11-07 16:49:33 +00:00
parent a3d4752bc4
commit 17198555f5
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-11-07 Clint Adams <clint@zsh.org>
* 21989: Completion/Debian/Command/_dpkg-cross:
completion for dpkg-cross.
2005-11-07 Peter Stephenson <pws@csr.com>
* unposted: NEWS: note roadmap.

View file

@ -0,0 +1,22 @@
#compdef dpkg-cross
local _dpkgcross_arches
_dpkgcross_arches=(/etc/dpkg-cross/cross-config.*(N))
_dpkgcross_arches=(${${_dpkgcross_arches#*.}:-alpha amd64 common cygwin-i386 gnu hppa i386 linux m32r m68k mips powerpc sh sh3 sh3eb sh4 sh4eb w32})
_arguments \
'(-h --help)'{-h,--help}'[show summary of options]' \
'(-v --verbose)'{-v,--verbose}'[be more verbose]' \
'(-q --quiet)'{-q,--quiet}'[be more quiet]' \
'(-a --arch)'{-a,--arch}':architecture:('"$_dpkgcross_arches"')' \
'(-i --install)'{-i,--install}'[install packages]' \
'(-A --convert-anyway)'{-A,--convert-anyway}'[convert package even if not useful]' \
'(-b --build)'{-b,--build}'[just build but do not install]' \
'(-r --remove)'{-r,--remove}'[remove packages]' \
'(-s --status)'{-s,--status}'[print status of named packages]' \
'(-l --list)'{-l,--list}'[print short status of named packages or patterns]' \
'(-L --list-files)'{-L,--list-files}'[list files belonging to named packages]' \
'(-u --update)'{-u,--update}'[update current cross-inst]' \
'(-Q --query)'{-Q,--query}'[print available update packages]' \
'*:package or path or pattern:_files'