no space
This commit is contained in:
parent
fcc5ffe660
commit
b51c780f48
1 changed files with 2 additions and 2 deletions
4
.zshrc
4
.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=$'%{\e[2m%} ('"${prompt_git_branch}"$')%{\e[22m%}'
|
PROMPT_GIT_SEGMENT=$'%{\e[2m%}('"${prompt_git_branch}"$')%{\e[22m%}'
|
||||||
else
|
else
|
||||||
PROMPT_GIT_SEGMENT=''
|
PROMPT_GIT_SEGMENT=''
|
||||||
fi
|
fi
|
||||||
|
|
@ -21,7 +21,7 @@ precmd() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT='%B%1~%b${PROMPT_GIT_SEGMENT} ${PROMPT_ARROW_COLOR}%B❯%b%f '
|
PROMPT='%B%1~%b${PROMPT_GIT_SEGMENT}${PROMPT_ARROW_COLOR}%B❯%b%f '
|
||||||
|
|
||||||
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue