From 41401f5f74f776eef954acc700f070a374d8c1ab Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Sun, 7 Aug 2011 15:57:01 +0200 Subject: [PATCH] Mvn: Improve plugin prefixes completion (use cached full form plugins too) --- _mvn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_mvn b/_mvn index 3e2166d..aa470e9 100644 --- a/_mvn +++ b/_mvn @@ -204,7 +204,8 @@ _mvn_plugin_prefixes() { local cache_dir zstyle -s ":completion:${curcontext}:" cache-path cache_dir : ${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 _describe -t 'plugin-prefixes' 'plugin prefix' plugins -S ':' }