diff options
author | Clint Adams <clint@users.sourceforge.net> | 2002-07-22 21:35:13 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2002-07-22 21:35:13 +0000 |
commit | 62613e6298d487f25b1b58814dabf43ee10c2d7e (patch) | |
tree | 7151dea4f2f808b0f173928485588412c9e4a5fc /Completion/Unix/Command/_global_tags | |
parent | bec76f8979d0feb4f48c7c8d14fa9f9ef4d2ea71 (diff) | |
download | zsh-62613e6298d487f25b1b58814dabf43ee10c2d7e.tar.gz zsh-62613e6298d487f25b1b58814dabf43ee10c2d7e.tar.xz zsh-62613e6298d487f25b1b58814dabf43ee10c2d7e.zip |
17476: Matt Zimmerman's completion for GNU GLOBAL.
Diffstat (limited to 'Completion/Unix/Command/_global_tags')
-rw-r--r-- | Completion/Unix/Command/_global_tags | 9 |
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 |