1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-26 14:21:58 +00:00

executing gradlew, when gradlew-file exists (#6485)

This commit is contained in:
Janosch Schwalm 2018-08-29 20:59:27 +02:00 committed by Robby Russell
parent 2b6434e879
commit 84aa274604

View file

@ -1,6 +1,18 @@
##############################################################################
# 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