From 8ebbf25a71ec3e194616d2d10bef629efa266bee Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Sat, 23 Sep 2023 12:13:36 +0900 Subject: 52179: Fix gradlew completion when it isn't in PATH --- Completion/Unix/Command/_gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_gradle b/Completion/Unix/Command/_gradle index c1f7c05ee..280aa243f 100644 --- a/Completion/Unix/Command/_gradle +++ b/Completion/Unix/Command/_gradle @@ -92,7 +92,7 @@ if [[ $state == task && ! -prefix - ]]; then zle -R "Generating cache from $gradle_buildfile" # Run gradle/gradlew and retrieve possible tasks. - for outputline in ${(f)"$($service --build-file $gradle_buildfile -q tasks --all)"}; do + for outputline in ${(f)"$($words[1] --build-file $gradle_buildfile -q tasks --all)"}; do # Tasks and subprojects each start with a lowercase letter, but whereas tasks are in camelCase, each # subproject consists of one or more sections of kebab-case, with each section ending in a ':'. -- cgit 1.4.1