Updated zsh git prompt

This commit is contained in:
Christian Baer 2021-01-04 21:32:48 +01:00
parent 290dcecc53
commit 6fb3fbfa7c

View File

@ -7,8 +7,8 @@ autoload -U colors && colors # Enable colors in prompt
# Modify the colors and symbols in these variables as desired.
GIT_PROMPT_SYMBOL="%{$fg[blue]%}±"
GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$reset_color%}"
GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}"
GIT_PROMPT_PREFIX="%{$fg[green]%}(%{$reset_color%}"
GIT_PROMPT_SUFFIX="%{$fg[green]%})%{$reset_color%}"
GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}"
GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}"
GIT_PROMPT_MERGING="%{$fg[magenta]%}⚡︎%{$reset_color%}"
@ -67,4 +67,4 @@ git_prompt_string() {
}
# Set the right-hand prompt
RPS1='$(git_prompt_string)'
RPS1='$(git_prompt_string)'