about summary refs log tree commit diff
path: root/Completion/Unix/Command/_global_tags
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-07-22 21:31:44 +0000
committerClint Adams <clint@users.sourceforge.net>2002-07-22 21:31:44 +0000
commitf45395457bb54b8f60b627ab0a807e9e7d1729d4 (patch)
tree872fcdee511cf06e3f6a0f0fc419a5e6ed1c2063 /Completion/Unix/Command/_global_tags
parentadfd1627098816ef87187078e558687618e16ff9 (diff)
downloadzsh-f45395457bb54b8f60b627ab0a807e9e7d1729d4.tar.gz
zsh-f45395457bb54b8f60b627ab0a807e9e7d1729d4.tar.xz
zsh-f45395457bb54b8f60b627ab0a807e9e7d1729d4.zip
17476: Matt Zimmerman's completion for GNU GLOBAL.
Diffstat (limited to 'Completion/Unix/Command/_global_tags')
-rw-r--r--Completion/Unix/Command/_global_tags9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_global_tags b/Completion/Unix/Command/_global_tags
new file mode 100644
index 000000000..bdd01baf6
--- /dev/null
+++ b/Completion/Unix/Command/_global_tags
@@ -0,0 +1,9 @@
+#autoload
+
+local globalresults
+
+[[ -z $words[CURRENT] ]] && return 1
+
+globalresults=($(global --completion $words[CURRENT]))
+
+compadd -M 'm:{a-zA-Z}={A-Za-z}' -a "$@" - globalresults