Add mistress branch highlighting

This commit is contained in:
2026-10-24 11:01:09 +08:00
parent 6c17db1aaf
commit 06f45b6c6c
+1 -1
View File
@@ -20,7 +20,7 @@ __prompt_git() {
branch=$(git branch --show-current 2>/dev/null) || return
[[ -z $branch ]] && return
if [[ $branch =~ main|master ]] && [[ -n $PROMPT_HIGHLIGHTED_BRANCH_COLOR ]]; then
if [[ $branch =~ main|master|mistress ]] && [[ -n $PROMPT_HIGHLIGHTED_BRANCH_COLOR ]]; then
color="\[\e[38;2;${PROMPT_HIGHLIGHTED_BRANCH_COLOR}m\]"
color_reset="\[\e[0m\]"
fi