Add mistress branch highlighting
This commit is contained in:
@@ -20,7 +20,7 @@ __prompt_git() {
|
|||||||
branch=$(git branch --show-current 2>/dev/null) || return
|
branch=$(git branch --show-current 2>/dev/null) || return
|
||||||
[[ -z $branch ]] && 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="\[\e[38;2;${PROMPT_HIGHLIGHTED_BRANCH_COLOR}m\]"
|
||||||
color_reset="\[\e[0m\]"
|
color_reset="\[\e[0m\]"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user