All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ammonite.shell.Configure.scala Maven / Gradle / Ivy

The newest version!
package ammonite.shell

import ammonite.repl.ReplAPI

/**
 * Created by haoyi on 9/1/15.
 */
object Configure {
  def apply(repl: ReplAPI, wd: => ammonite.ops.Path) = {
    repl.frontEnd() = ammonite.repl.AmmoniteFrontEnd(
      ammonite.shell.PathComplete.pathCompleteFilter(wd, repl.colors())
    )

    repl.prompt.bind(
      sys.props("user.name") +
      "-" +
      wd.segments.lastOption.getOrElse("") +
      "@ "
    )
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy