feat: dim git branch segment in prompt
This commit is contained in:
parent
fa02adb59f
commit
fcc5ffe660
1 changed files with 1 additions and 1 deletions
2
.zshrc
2
.zshrc
|
|
@ -9,7 +9,7 @@ precmd() {
|
||||||
|
|
||||||
prompt_git_branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null)
|
prompt_git_branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null)
|
||||||
if [[ -n $prompt_git_branch ]]; then
|
if [[ -n $prompt_git_branch ]]; then
|
||||||
PROMPT_GIT_SEGMENT=" (${prompt_git_branch})"
|
PROMPT_GIT_SEGMENT=$'%{\e[2m%} ('"${prompt_git_branch}"$')%{\e[22m%}'
|
||||||
else
|
else
|
||||||
PROMPT_GIT_SEGMENT=''
|
PROMPT_GIT_SEGMENT=''
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue