mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Mvn: Improve plugin prefixes completion (use cached full form plugins too)
This commit is contained in:
@@ -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 ':'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user