mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
executing gradlew, when gradlew-file exists
This commit is contained in:
parent
a7fb55cf13
commit
76c8150233
1 changed files with 12 additions and 0 deletions
|
|
@ -1,6 +1,18 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue