summary refs log tree commit diff
path: root/Completion/User/_newsgroups
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-02-08 17:50:26 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-02-08 17:50:26 +0000
commit5723d260c0928b85989bfde7b48f26acf2d9f8c5 (patch)
treed305429682529f33792354265f39cc16ad736546 /Completion/User/_newsgroups
parent14d2dae44c6ccc408ee2f7b558ea31f28b2b5936 (diff)
downloadzsh-5723d260c0928b85989bfde7b48f26acf2d9f8c5.tar.gz
zsh-5723d260c0928b85989bfde7b48f26acf2d9f8c5.tar.xz
zsh-5723d260c0928b85989bfde7b48f26acf2d9f8c5.zip
add completion for newsgroups (13448)
Diffstat (limited to 'Completion/User/_newsgroups')
-rw-r--r--Completion/User/_newsgroups9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/User/_newsgroups b/Completion/User/_newsgroups
new file mode 100644
index 000000000..74e878d11
--- /dev/null
+++ b/Completion/User/_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
+