Updated zsh git prompt
This commit is contained in:
parent
290dcecc53
commit
6fb3fbfa7c
@ -7,8 +7,8 @@ autoload -U colors && colors # Enable colors in prompt
|
|||||||
|
|
||||||
# Modify the colors and symbols in these variables as desired.
|
# Modify the colors and symbols in these variables as desired.
|
||||||
GIT_PROMPT_SYMBOL="%{$fg[blue]%}±"
|
GIT_PROMPT_SYMBOL="%{$fg[blue]%}±"
|
||||||
GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$reset_color%}"
|
GIT_PROMPT_PREFIX="%{$fg[green]%}(%{$reset_color%}"
|
||||||
GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}"
|
GIT_PROMPT_SUFFIX="%{$fg[green]%})%{$reset_color%}"
|
||||||
GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}"
|
GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}"
|
||||||
GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}"
|
GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}"
|
||||||
GIT_PROMPT_MERGING="%{$fg[magenta]%}⚡︎%{$reset_color%}"
|
GIT_PROMPT_MERGING="%{$fg[magenta]%}⚡︎%{$reset_color%}"
|
||||||
@ -67,4 +67,4 @@ git_prompt_string() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Set the right-hand prompt
|
# Set the right-hand prompt
|
||||||
RPS1='$(git_prompt_string)'
|
RPS1='$(git_prompt_string)'
|
||||||
|
Loading…
Reference in New Issue
Block a user