[+] Gradle auto detection
This commit is contained in:
@@ -97,6 +97,12 @@ compress-zst() {
|
|||||||
}
|
}
|
||||||
alias tar-kill-progress="watch -n 60 killall tar -SIGUSR1"
|
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)
|
# Unix permissions reset (Dangerous! This will make executable files no longer executable)
|
||||||
reset-permissions-dangerous() {
|
reset-permissions-dangerous() {
|
||||||
sudo find . -type d -exec chmod 755 {} \;
|
sudo find . -type d -exec chmod 755 {} \;
|
||||||
|
|||||||
Reference in New Issue
Block a user