Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
84aa2746
Commit
84aa2746
authored
6 years ago
by
Janosch Schwalm
Committed by
Robby Russell
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
executing gradlew, when gradlew-file exists (#6485)
parent
2b6434e8
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/gradle/gradle.plugin.zsh
+12
-0
plugins/gradle/gradle.plugin.zsh
with
12 additions
and
0 deletions
+12
-0
plugins/gradle/gradle.plugin.zsh
View file @
84aa2746
##############################################################################
# A descriptive listing of core Gradle commands
############################################################################
gradle-or-gradlew
()
{
if
[
-f
./gradlew
]
;
then
echo
"executing gradlew instead of gradle"
;
./gradlew
"
$@
"
;
else
gradle
"
$@
"
;
fi
}
alias
gradle
=
gradle-or-gradlew
;
function
_gradle_core_commands
()
{
local
ret
=
1 state
_arguments
':subcommand:->subcommand'
&&
ret
=
0
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help