[+] Gradle auto detection

This commit is contained in:
Hykilpikonna
2022-11-24 01:10:35 -05:00
parent f85a2030c2
commit 1c08ef474c
+6
View File
@@ -97,6 +97,12 @@ compress-zst() {
}
alias tar-kill-progress="watch -n 60 killall tar -SIGUSR1"
# Gradle with auto environment detection
GRADLE="$(which gradle)"
gradle() {
[[ -f "./gradlew" ]] && ./gradlew "$@" || $GRADLE "$@"
}
# Unix permissions reset (Dangerous! This will make executable files no longer executable)
reset-permissions-dangerous() {
sudo find . -type d -exec chmod 755 {} \;