gitfast: fix the prompt colour
We can add colour in Zsh without the need of pcmode. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Родитель
eec3dc607c
Коммит
079fef48df
|
@ -502,9 +502,11 @@ __git_ps1 ()
|
||||||
|
|
||||||
local z="${GIT_PS1_STATESEPARATOR-" "}"
|
local z="${GIT_PS1_STATESEPARATOR-" "}"
|
||||||
|
|
||||||
# NO color option unless in PROMPT_COMMAND mode
|
# NO color option unless in PROMPT_COMMAND mode or it's Zsh
|
||||||
if [ $pcmode = yes ] && [ -n "${GIT_PS1_SHOWCOLORHINTS-}" ]; then
|
if [ -n "${GIT_PS1_SHOWCOLORHINTS-}" ]; then
|
||||||
__git_ps1_colorize_gitstring
|
if [ $pcmode = yes ] || [ -n "${ZSH_VERSION-}" ]; then
|
||||||
|
__git_ps1_colorize_gitstring
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
b=${b##refs/heads/}
|
b=${b##refs/heads/}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче