about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Debian/Command/.distfiles2
-rw-r--r--Completion/Debian/Command/_apt-show-versions21
3 files changed, 28 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7820a2b7a..2f14e38ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-03  Clint Adams  <clint@zsh.org>
+
+	* 16393: Completion/Debian/Command/.distfiles,
+	Completion/Debian/Command/_apt-show-versions: completion for Christoph
+	Martin's apt-show-versions script.
+
 2002-01-02  Oliver Kiddle  <opk@zsh.org>
 
 	* users/4561: Completion/Unix/Command/_zip: fix bug with finding
diff --git a/Completion/Debian/Command/.distfiles b/Completion/Debian/Command/.distfiles
index 3fc0c7d6a..ef104c787 100644
--- a/Completion/Debian/Command/.distfiles
+++ b/Completion/Debian/Command/.distfiles
@@ -1,6 +1,6 @@
 DISTFILES_SRC='
 .distfiles
-_apt
+_apt	_apt-show-versions
 _bts	_bug
 _debchange _dpkg       _dpkg_source  _dput  _dupload
 _update-alternatives   _make-kpkg
diff --git a/Completion/Debian/Command/_apt-show-versions b/Completion/Debian/Command/_apt-show-versions
new file mode 100644
index 000000000..b29034a97
--- /dev/null
+++ b/Completion/Debian/Command/_apt-show-versions
@@ -0,0 +1,21 @@
+#compdef apt-show-versions
+
+_arguments \
+   '(--status-file)-stf[status file]:status file:_files' \
+   '(-stf)--status-file=:status file:_files' \
+   '(--list-dir)-ld[aptlist dir]:aptlist dir:_files -/' \
+   '(-ld)--list-dir=:aptlist dir:_files -/' \
+   '(--package)-p[package]:package:_deb_packages avail' \
+   '(-p)--package=:package:_deb_packages avail' \
+   '(--regex)-r[regex]' \
+   '(-r)--regex' \
+   '(--upgradeable)-u[print only upgradeable packages]' \
+   '(-u)--upgradeable' \
+   '(--allversions)-a[print all available versions]' \
+   '(-a)--allversions' \
+   '(--brief)-b[brief output]' \
+   '(-b)--brief' \
+   '(--verbose)-v[verbose output]' \
+   '(-v)--verbose' \
+   '(--help)-h[help]' \
+   '(-h)--help'