Basically you ask about property settings, this is a bit beyond the fact that you need to load the definition file as well - and this doesnโt really help Windows, but I thought I would share it if it is useful:
I resorted to using a script wrapper stored as ~/bin/scala to set configuration properties and load some utility functions:
If you sometimes use the Ammonite REPL, as another answer suggests, the utility definitions can be separated by the load of them ~/.ammonite/predef.scala :
try load.exec(ammonite.ops.home/".config"/'scala/"replinit.scala") catch { case _: Exception => println("=== replrc not loaded! ===") }
I'm not sure if the initialization file for sbt console can be loaded automatically, but Seth Tisue's comment on setting initialize is useful for the property, but using the :load command in the value for initialCommands in console does not work.
source share