Mvn: Improve plugin prefixes completion (use cached full form plugins too)

This commit is contained in:
Julien Nicoulaud 2011-08-07 15:57:01 +02:00
parent e942e9f81b
commit 41401f5f74
1 changed files with 2 additions and 1 deletions

3
_mvn
View File

@ -204,7 +204,8 @@ _mvn_plugin_prefixes() {
local cache_dir local cache_dir
zstyle -s ":completion:${curcontext}:" cache-path cache_dir zstyle -s ":completion:${curcontext}:" cache-path cache_dir
: ${cache_dir:=${ZDOTDIR:-$HOME}/.zcompcache} : ${cache_dir:=${ZDOTDIR:-$HOME}/.zcompcache}
plugins+=($cache_dir/mvn/plugins/[^:]#(:t)) local cached_plugins; cached_plugins=($cache_dir/mvn/plugins/*(:t))
plugins+=(${${${cached_plugins#*:}%-plugin*}/-#maven-#})
fi fi
_describe -t 'plugin-prefixes' 'plugin prefix' plugins -S ':' _describe -t 'plugin-prefixes' 'plugin prefix' plugins -S ':'
} }