summary refs log tree commit diff
path: root/Completion/Debian/_deb_packages
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-02 21:27:08 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-02 21:27:08 +0000
commit63680c108bd05f3cb9401a7fcf547b53381d2c17 (patch)
tree47c957595b9d2d8fb65ec4a00b812706d6248c6e /Completion/Debian/_deb_packages
parent1bc59a08736c6b8d0af1cfaa89e3daca5157cbae (diff)
downloadzsh-63680c108bd05f3cb9401a7fcf547b53381d2c17.tar.gz
zsh-63680c108bd05f3cb9401a7fcf547b53381d2c17.tar.xz
zsh-63680c108bd05f3cb9401a7fcf547b53381d2c17.zip
Initial revision
Diffstat (limited to 'Completion/Debian/_deb_packages')
-rw-r--r--Completion/Debian/_deb_packages7
1 files changed, 7 insertions, 0 deletions
diff --git a/Completion/Debian/_deb_packages b/Completion/Debian/_deb_packages
new file mode 100644
index 000000000..b5e4ffd85
--- /dev/null
+++ b/Completion/Debian/_deb_packages
@@ -0,0 +1,7 @@
+#autoload
+
+if (( ! $+_deb_packages )); then
+  _deb_packages=( $(awk '/^Package:/ { print $2 }' /var/lib/dpkg/status) )
+fi
+
+compadd "$@" - $_deb_packages