[2.x] Tweak the prompt (#8876)

**Problem/Solution**
Tweak the shell prompt to differentiate sbt 1.x vs 2.x.
This commit is contained in:
eugene yokota 2026-03-05 23:55:04 -05:00 committed by GitHub
parent dd66216309
commit 8a77f7fb03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -4579,7 +4579,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 _ => "> "
}
}