Bash スクリプトなどから REPL を呼び出す場合は、システム プロパティ:power
を介してすぐにモードを有効にできます。scala.repl.power
miles@lewis$ scala -Dscala.repl.power
Welcome to Scala version 2.9.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_05)
Type in expressions to have them evaluated.
Type :help for more information.
scala>
[info] compiler init time: 2.186 s.
scala>
** Power User mode enabled - BEEP BOOP SPIZ **
** :phase has been set to 'typer'. **
** scala.tools.nsc._ has been imported **
** global._ and definitions._ also imported **
** Try :help, vals.<tab>, power.<tab> **
scala>
[info] total init time: 5.105 s.
scala>