[mike@mwxm4]

This commit is contained in:
2026-07-28 15:25:54 +02:00
parent 1e3ae9a4c7
commit 113527f220
14 changed files with 60 additions and 57 deletions
+5 -5
View File
@@ -45,21 +45,21 @@ func plainPrompt() string {
func coloredPrompt() string {
var b strings.Builder
b.WriteString(cBold + cPurple + "< " + cReset)
b.WriteString(cCyan + filepath.Base(BASE) + cReset)
b.WriteString(cBold + cViolet + "< " + cReset)
b.WriteString(cBlue + filepath.Base(BASE) + cReset)
if PRJ != "" && isDir(BASE+"/"+PRJ) {
b.WriteString(cBold + cWhite + "/" + cReset + cBold + cGreen + PRJ + cReset)
if BPLSTATE != "" {
b.WriteString(cRed + BPLSTATE + cReset)
}
if BRANCH != "" {
b.WriteString(cGray + " (" + cReset + cCyan + BRANCH + cReset)
b.WriteString(cDark + " (" + cReset + cBlue + BRANCH + cReset)
if DIRTY {
b.WriteString(cRed + "*" + cReset)
}
b.WriteString(cGray + ")" + cReset)
b.WriteString(cDark + ")" + cReset)
}
}
b.WriteString(" " + cBold + cPurple + ">" + cReset + " ")
b.WriteString(" " + cBold + cViolet + ">" + cReset + " ")
return b.String()
}