about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:38:57 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:38:57 +0000
commitf1a6f3d043f8c945292c2da00aacdb796d750ae3 (patch)
tree1aca8a3b263ce39c2f3bcc2bce0b2496ccfaead0
parent26d3616f3dd38ad7e4509c269d92a5c7cf80c107 (diff)
downloadzsh-f1a6f3d043f8c945292c2da00aacdb796d750ae3.tar.gz
zsh-f1a6f3d043f8c945292c2da00aacdb796d750ae3.tar.xz
zsh-f1a6f3d043f8c945292c2da00aacdb796d750ae3.zip
moved from Completion/User/_newsgroups
-rw-r--r--Completion/Unix/Type/_newsgroups9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_newsgroups b/Completion/Unix/Type/_newsgroups
new file mode 100644
index 000000000..74e878d11
--- /dev/null
+++ b/Completion/Unix/Type/_newsgroups
@@ -0,0 +1,9 @@
+#autoload
+
+local expl
+
+: ${(A)_cache_newsgroups:=${${(f)"$(fgrep -vh \! ~/.newsrc*)"}%:*}}
+
+(( ${(w)#_cache_newsgroups} )) && _wanted newsgroups expl 'newsgroup' \
+    _multi_parts "$@" -i . _cache_newsgroups
+