starcraftman / zsh-git-prompt

[Active Fork] Informative git prompt for zsh
MIT License
58 stars 15 forks source link

Reset color in prefix #16

Closed fam4r closed 6 years ago

fam4r commented 6 years ago

Hi,

If user uses colored prompt, prefix string has last used color.

In my case resetting color in following way solved

ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}("
starcraftman commented 6 years ago

Yes I can see that being an issue. I'll just make sure the git prompt is totally isolated by ensuring it begins and ends with a reset flag. That way colouring should always be consistent internally.

fam4r commented 6 years ago

Yeah, good. Is there something I have to do with actual configuration? Should I remove that option from my config?

starcraftman commented 6 years ago

@fam4r You can pull latest and remove the reset from your custom prefix.