zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _apt-get and _deb_packages
@ 1999-09-02 21:14 Tanaka Akira
  1999-09-03 20:30 ` Falk Hueffner
  0 siblings, 1 reply; 5+ messages in thread
From: Tanaka Akira @ 1999-09-02 21:14 UTC (permalink / raw)
  To: zsh-workers

This is completion functions for apt-get of Debian.

--- /dev/null	Fri Sep  3 02:54:25 1999
+++ Completion/Debian/_apt-get	Fri Sep  3 05:47:52 1999
@@ -0,0 +1,23 @@
+#compdef apt-get
+
+_arguments -s \
+  -{,-no-}d --{,no-}download-only \
+  -{,-no-}f --{,no-}fix-broken \
+  -{,-no-}h --{,no-}help \
+  -{,-no-}v --{,no-}version \
+  -{,-no-}m --{,no-}ignore-missing \
+  --{,no-}fix-missing \
+  --{,no-}no-download \
+  \*-{,-no-}q \*--{,no-}{quiet,silent} \
+  -{,-no-}s --{,no-}{simulate,just-print,dry-run,recon,no-act} \
+  -{,-no-}y --{,no-}{yes,assume-yes} \
+  -{,-no-}u --{,no-}show-upgraded \
+  -{,-no-}b --{,no-}{compile,build} \
+  --{,no-}ignore-hold \
+  --{,no-}no-upgrade \
+  --{,no-}force-yes \
+  --{,no-}print-uris \
+  {-{,-no-}c,--{,no-}config-file}':Configuration File:_files' \
+  {-o,--option}':Foo\:\:Bar=bar:' \
+  ':command:(update upgrade dselect-upgrade dist-upgrade install remove source check clean autoclean help)' \
+  '*:package:_deb_packages'
--- /dev/null	Fri Sep  3 02:54:25 1999
+++ Completion/Debian/_deb_packages	Fri Sep  3 06:11:01 1999
@@ -0,0 +1,7 @@
+#autoload
+
+if (( ! $+_deb_packages )); then
+  _deb_packages=( $(awk '/^Package:/ { print $2 }' /var/lib/dpkg/status) )
+fi
+
+compadd "$@" - $_deb_packages
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-09-05 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-02 21:14 PATCH: _apt-get and _deb_packages Tanaka Akira
1999-09-03 20:30 ` Falk Hueffner
1999-09-03 23:17   ` Tanaka Akira
1999-09-04 14:49   ` Clint Adams
1999-09-05 15:08     ` Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).