mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-21 07:53:03 +01:00
fix(mvn): complete with compsys instead of compctl (#14241)
This commit is contained in:
1 parent
044bcbf82d
commit
6010fb6260
1 file changed
+10
-3
@@ -347,6 +347,13 @@ function listMavenCompletions {
|
||||
)
|
||||
}
|
||||
|
||||
compctl -K listMavenCompletions mvn mvnw
|
||||
compctl -K listMavenCompletions mvn-color
|
||||
compctl -K listMavenCompletions mvn-or-mvnw
|
||||
# Completion, via compsys so that tools built on it (fzf-tab, etc.) can take over.
|
||||
_mvn() {
|
||||
local -a commands
|
||||
listMavenCompletions
|
||||
# _describe splits entries on `:`, so escape it to keep goals like `dependency:tree`.
|
||||
commands=("${(@)reply//:/\\:}")
|
||||
_describe -t mvn-commands 'mvn command' commands
|
||||
}
|
||||
|
||||
compdef _mvn mvn mvnw mvn-color mvn-or-mvnw
|
||||
Reference in new issue
Block a user