Allow override of zsh prompt prefix

Can be set with `ZSH_THEME_PROMPT_SYMBOL`. Defaults to `➜`
This commit is contained in:
Jared Culp 2017-08-01 22:55:20 -04:00 committed by GitHub
commit 29dc356a30

View file

@ -1,4 +1,6 @@
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT_SYMBOL=${ZSH_THEME_PROMPT_SYMBOL:-➜}
local ret_status="%(?:%{$fg_bold[green]%}${PROMPT_SYMBOL} :%{$fg_bold[red]%}${PROMPT_SYMBOL} )"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"