Skip to content

Instantly share code, notes, and snippets.

@alphaneet
Created January 12, 2012 15:14
Show Gist options
  • Save alphaneet/1601051 to your computer and use it in GitHub Desktop.
Save alphaneet/1601051 to your computer and use it in GitHub Desktop.
sbt の prompt に表示される文字を変更する方法。つhttp://d.hatena.ne.jp/alpha_neet/20120112/1326381255
import sbt._
// 一般的な sbt project では Keys._ をするが、どこで使用してるか分かりやすくするためコメントアウト
//import Keys._
object MyBuild extends Build {
val prompt = "oppai> "
lazy val root = Project(
id = "root",
base = file("."),
settings = Defaults.defaultSettings ++ Seq( Keys.shellPrompt := { _ => prompt })
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment