aboutsummaryrefslogtreecommitdiff
path: root/shells/ammonite/pkg-message
blob: eda1d943cdce1733114dba8c10b853017f1d9a58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[
{ type: install
  message: <<EOM
To use ammonite as a shell you must(!) setup a configuration file
~/.ammonite/predef.sc with a least the following minimal content:

interp.load.ivy(
  "com.lihaoyi" %% "ammonite-ops" % ammonite.Constants.version
)
interp.load.ivy(
  "com.lihaoyi" %
  s"ammonite-shell_${scala.util.Properties.versionNumberString}" %
  ammonite.Constants.version
)
// This @ is necessary for Ammonite to process the `interp.load.ivy`
// before continuing.
@
val shellSession = ammonite.shell.ShellSession()
import shellSession._
import ammonite.ops._
import ammonite.shell._
ammonite.shell.Configure(interp, repl, wd)
EOM
}
]