Skip to content

Instantly share code, notes, and snippets.

@Quar
Created January 15, 2019 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Quar/6cadaa247187ad0723d71bf3733a8a42 to your computer and use it in GitHub Desktop.
Save Quar/6cadaa247187ad0723d71bf3733a8a42 to your computer and use it in GitHub Desktop.
ammonite predef.sc
interp.load.ivy(
"com.lihaoyi" %
s"ammonite-shell_${scala.util.Properties.versionNumberString}" %
s"[${ammonite.Constants.version.replaceAll(raw"([\d]+\.[\d+]).*", "$1.0")},)" // use [x.x.0,) in case edge version no avail. in Maven
)
@
val shellSession = ammonite.shell.ShellSession()
import shellSession._
import ammonite.ops._
import ammonite.shell._
ammonite.shell.Configure(interp, repl, wd)
//repl.prompt.bind(wd.toString + "@ ")
repl.prompt.bind("@ ")
//repl.load.exec(home/".ammonite"/"Reload.Scala")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment