Do not run expensive env initializations for non-interactive shells

This commit is contained in:
Alexander Gehrke 2025-03-04 14:59:59 +01:00 committed by Alexander Roso
parent 87ced67ef2
commit 03e0518f6f
4 changed files with 13 additions and 1 deletions

9
env/50_scala.zsh vendored
View file

@ -1 +1,10 @@
=======
[[ $- == *i* ]] || return 0
if command -v java &> /dev/null && java -version 2>&1 | grep -q GraalVM; then
export SBT_OPTS="-Xmx10G"
else
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=10G -Xmx10G"
fi
>>>>>>> 4f34586 (Do not run expensive env initializations for non-interactive shells)
export SBT_OPTS="-Xmx10G"