mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 02:55:23 +02:00
**Problem/Solution** Tweak the shell prompt to differentiate sbt 1.x vs 2.x.
This commit is contained in:
@@ -4635,7 +4635,15 @@ object Classpaths {
|
||||
val extracted = Project.extract(s)
|
||||
(extracted.currentRef / name).get(extracted.structure.data) match {
|
||||
case Some(name) =>
|
||||
s"sbt:$name" + Def.withColor(s"> ", Option(scala.Console.CYAN), isColorEnabled)
|
||||
Def.withColor(
|
||||
"sbt",
|
||||
Option(scala.Console.CYAN + scala.Console.BOLD),
|
||||
isColorEnabled
|
||||
) + s":$name" + Def.withColor(
|
||||
s"> ",
|
||||
Option(scala.Console.CYAN + scala.Console.BOLD),
|
||||
isColorEnabled
|
||||
)
|
||||
case _ => "> "
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user