Skip to content

Instantly share code, notes, and snippets.

@dlwh
Created October 4, 2012 00:23
Show Gist options
  • Save dlwh/3830758 to your computer and use it in GitHub Desktop.
Save dlwh/3830758 to your computer and use it in GitHub Desktop.
enable gen-idea
mkdir -p ~/.sbt/plugins/ && cat "
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
" >> ~/.sbt/plugins/build.sbt
mkdir ~/bin/
echo 'java -Xms512M -Xmx1G -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar `dirname $0`/sbt-launch.jar "$@"' > ~/bin/sbt
curl http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.12.0/sbt-launch.jar -o ~/bin/sbt-launch.jar
chmod u+x ~/bin/sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment