mirror of https://github.com/sbt/sbt.git
**Problem/Solution** Tweak the shell prompt to differentiate sbt 1.x vs 2.x.
This commit is contained in:
parent
8e40cc395a
commit
009997f4e0
|
|
@ -4635,7 +4635,15 @@ object Classpaths {
|
||||||
val extracted = Project.extract(s)
|
val extracted = Project.extract(s)
|
||||||
(extracted.currentRef / name).get(extracted.structure.data) match {
|
(extracted.currentRef / name).get(extracted.structure.data) match {
|
||||||
case Some(name) =>
|
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 _ => "> "
|
case _ => "> "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue