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

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

View File

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