Created
January 15, 2019 04:48
-
-
Save Quar/6cadaa247187ad0723d71bf3733a8a42 to your computer and use it in GitHub Desktop.
ammonite predef.sc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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