Skip to content

Instantly share code, notes, and snippets.

@agleyzer
Created December 2, 2013 20:23
Show Gist options
  • Save agleyzer/7758128 to your computer and use it in GitHub Desktop.
Save agleyzer/7758128 to your computer and use it in GitHub Desktop.
my ~/.sbtconfig, works w/ SBT 0.13 and ansi-term
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M"
# this allows sbt to be executed in Emacs terminal
if [[ -n $EMACS ]]; then
echo "Emacs detected, commencing hijacking sequence..."
# to avoid division by zero, with jline 1.0, see https://github.com/sbt/sbt/issues/714
stty columns 80
# avoid fancy colors that comint-mode won't support anyway
SBT_OPTS="$SBT_OPTS -Dsbt.log.noformat=true -Djline.terminal=jline.UnsupportedTerminal"
exec rlwrap java -Xmx512M ${SBT_OPTS} -jar /usr/local/Cellar/sbt/0.13.0/libexec/sbt-launch.jar "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment