diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-09-28 14:48:50 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-09-28 14:48:50 +0000 |
commit | c3ca181fbe299b0f61885cc591fd7e1c01aee8f1 (patch) | |
tree | fc31c99c6ee5a86f90c655c4dfcdada4e1f1f0b9 | |
parent | f3c0df36be042489041968c57b201a1f44664c2b (diff) | |
download | zsh-c3ca181fbe299b0f61885cc591fd7e1c01aee8f1.tar.gz zsh-c3ca181fbe299b0f61885cc591fd7e1c01aee8f1.tar.xz zsh-c3ca181fbe299b0f61885cc591fd7e1c01aee8f1.zip |
21778: completion for piuparts.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Debian/Command/_piuparts | 30 |
2 files changed, 35 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 8694faadc..58d6eebb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Completion/Debian/Command/_piuparts b/Completion/Debian/Command/_piuparts new file mode 100644 index 000000000..83e9ef115 --- /dev/null +++ b/Completion/Debian/Command/_piuparts @@ -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 |