Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
84aa2746
"vscode:/vscode.git/clone" did not exist on "2102d10896fe14e912ed6ed8075bb0ddd3a5bc6a"
Commit
84aa2746
authored
Aug 29, 2018
by
Janosch Schwalm
Committed by
Robby Russell
Aug 29, 2018
Browse files
executing gradlew, when gradlew-file exists (#6485)
parent
2b6434e8
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/gradle/gradle.plugin.zsh
View file @
84aa2746
##############################################################################
##############################################################################
# A descriptive listing of core Gradle commands
# 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
()
{
function
_gradle_core_commands
()
{
local
ret
=
1 state
local
ret
=
1 state
_arguments
':subcommand:->subcommand'
&&
ret
=
0
_arguments
':subcommand:->subcommand'
&&
ret
=
0
...
...
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