feat: dim git branch segment in prompt

This commit is contained in:
mwiegand 2026-04-19 16:14:49 +02:00
parent fa02adb59f
commit fcc5ffe660
No known key found for this signature in database

2
.zshrc
View file

@ -9,7 +9,7 @@ precmd() {
prompt_git_branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null)
if [[ -n $prompt_git_branch ]]; then
PROMPT_GIT_SEGMENT=" (${prompt_git_branch})"
PROMPT_GIT_SEGMENT=$'%{\e[2m%} ('"${prompt_git_branch}"$')%{\e[22m%}'
else
PROMPT_GIT_SEGMENT=''
fi