add bash-it
This commit is contained in:
12
dot_bash_it/plugins/available/gradle.plugin.bash
Normal file
12
dot_bash_it/plugins/available/gradle.plugin.bash
Normal file
@@ -0,0 +1,12 @@
|
||||
cite about-plugin
|
||||
about-plugin 'Add a gw command to use gradle wrapper if present, else use system gradle'
|
||||
|
||||
function gw() {
|
||||
local file="gradlew"
|
||||
local result
|
||||
|
||||
result="$(_bash-it-find-in-ancestor "${file}")"
|
||||
|
||||
# Call gradle
|
||||
"${result:-gradle}" $*
|
||||
}
|
||||
Reference in New Issue
Block a user