mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-01 20:11:06 +01:00
21778: completion for piuparts.
This commit is contained in:
parent
f3c0df36be
commit
c3ca181fbe
2 changed files with 35 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-09-28 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 21778: Completion/Debian/Command/_piuparts: completion for
|
||||
piuparts.
|
||||
|
||||
2005-09-27 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 21769: Src/utils.c, Src/Zle/complist.c: fix some consequences of
|
||||
|
|
|
|||
30
Completion/Debian/Command/_piuparts
Normal file
30
Completion/Debian/Command/_piuparts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#compdef piuparts
|
||||
|
||||
local context state line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -s \
|
||||
'(-a --apt)'{-a,--apt} \
|
||||
'(-b --basetgz)'{-b,--basetgz=}':base tarball:_files' \
|
||||
'(-d --distribution)'{-d,--distribution=}':Debian distribution:(sarge etch sid experimental)' \
|
||||
'(-i --ignore)*'{-i,--ignore=}':file to ignore:_files' \
|
||||
'(-I --ignore-regexp)*'{-I,--ignore-regexp=}':expression to ignore' \
|
||||
'(-k --keep-tmpdir)'{-k,--keep-tmpdir} \
|
||||
'(-l --log-file)'{-l,--logfile=}':log file:_files' \
|
||||
'(-m --mirror)'{-m,--mirror=}':Debian mirror:_urls' \
|
||||
'(-n --no-ignores)'{-n,--no-ignores} \
|
||||
'(-p --pbuilder)'{-p,--pbuilder}'[use /var/cache/pbuilder/base.tgz]' \
|
||||
'(-s --save)'{-s,--save=}':target tarball:_files' \
|
||||
'(-t --tmpdir)'{-t,--tmpdir=}':temp dir:_files -/' \
|
||||
'-V[version]' \
|
||||
'*:package:->packages' && return 0
|
||||
|
||||
case "$state" in
|
||||
(packages)
|
||||
if (( $+opt_args[-a] )); then
|
||||
_deb_packages avail
|
||||
else
|
||||
_files -g '*.deb'
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue