mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-12-05 06:38:58 +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
|
# Completion, via compsys so that tools built on it (fzf-tab, etc.) can take over.
|
||||||
compctl -K listMavenCompletions mvn-color
|
_mvn() {
|
||||||
compctl -K listMavenCompletions mvn-or-mvnw
|
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