I am lazy. My fingers have habits that are sometimes hard to change.
I've learned to type
gradle, like all the time. Now I need to use
gradlew, and for some reason this is difficult.
So I wrote a script, that I've now aliased (whichGradle is now obviously on my path):
which just does this:
if [ -x $PWD/gradlew ]; then echo Using $PWD/gradlew $PWD/gradlew $@ else echo Using `which gradle` gradle $@ fi