summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-08 21:05:57 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-08 21:05:57 +0000
commit20e133ad477a60657a5f7ddba168071d0c01a5d7 (patch)
tree0829706ace4ac28ff2ca033943c7237f76cf12a5 /Completion
parent77daced98b0f6c529969627600e208ee63b6884b (diff)
downloadzsh-20e133ad477a60657a5f7ddba168071d0c01a5d7.tar.gz
zsh-20e133ad477a60657a5f7ddba168071d0c01a5d7.tar.xz
zsh-20e133ad477a60657a5f7ddba168071d0c01a5d7.zip
Initial revision
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Debian/_apt-cache40
1 files changed, 40 insertions, 0 deletions
diff --git a/Completion/Debian/_apt-cache b/Completion/Debian/_apt-cache
new file mode 100644
index 000000000..79fab7aef
--- /dev/null
+++ b/Completion/Debian/_apt-cache
@@ -0,0 +1,40 @@
+#compdef apt-cache
+
+_apt_arguments _apt-cache_sm \
+  -h,--help:bool \
+  -v,--version:bool \
+  -p,--pkg-cache:'_files "$expl_pkg_cache[@]"' \
+  -s,--src-cache:'_files "$expl_src_cache[@]"' \
+  -q,--quiet:intlevel \
+  -i,--important:bool \
+  -f,--full:bool \
+  --name-only:bool \
+  -c,--config-file:configfile \
+  -o,--option:arbitem \
+  -- \
+  \( \
+    /$'help\0' \| \
+    /$'add\0' /$'[^\0]#\0' !'_files' \# \| \
+    /$'gencaches\0' \| \
+    /$'showpkg\0' /$'[^\0]#\0' !'_deb_packages avail "$expl_packages[@]"' \# \| \
+    /$'stats\0' \| \
+    /$'dump\0' \| \
+    /$'dumpavail\0' \| \
+    /$'unmet\0' \| \
+    /$'check\0' \| \
+    /$'search\0' \| \
+    /$'show\0' \| \
+    /"[]"	!'compadd "$expl_action[@]" help add gencaches showpkg stats dump dumpavail unmet check search show' \
+  \)
+
+_apt-cache () {
+  local expl_action expl_packages expl_pkg_cache expl_src_cache
+  _description expl_action action
+  _description expl_packages 'package'
+  _description expl_pkg_cache 'package cache'
+  _description expl_src_cache 'source cache'
+
+  _apt-cache_sm
+}
+
+_apt-cache "$@"