[Fix #126] Do not evaluate undefined $git_info
Fix a bug introduced in aa0c1fa
.
This commit is contained in:
parent
d3c6771c27
commit
000b3653e6
|
@ -45,7 +45,7 @@ function prompt_sorin_setup {
|
||||||
'prompt' ' %F{blue}git%f$(coalesce "%b" "%p" "%c")%s' \
|
'prompt' ' %F{blue}git%f$(coalesce "%b" "%p" "%c")%s' \
|
||||||
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
||||||
|
|
||||||
PROMPT='%F{cyan}%1~%f${(e)git_info[prompt]} %(!.%B%F{red}#%f%b.%B%F{green}❯%f%b) '
|
PROMPT='%F{cyan}%1~%f${git_info:+${(e)git_info[prompt]}} %(!.%B%F{red}#%f%b.%B%F{green}❯%f%b) '
|
||||||
RPROMPT='${editor_info[keymap]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${git_info[rprompt]}'
|
RPROMPT='${editor_info[keymap]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${git_info[rprompt]}'
|
||||||
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue