Re: [PATCH v2] git-prompt.sh: colorize ZSH prompt
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 11, 2013, 22:29 UTC
- Message-ID
- <CAMP44s1B+FfdKebpTq+AwHP3YCiiVc++rtc8wqOn8EOy1dyLwA@mail.gmail.com>
- In-Reply-To
- <1368310739-24099-1-git-send-email-artagnon@gmail.com>
On Sat, May 11, 2013 at 5:18 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 7 quoted lines
> Add colors suitable for use in the ZSH prompt. Having learnt that the > ZSH equivalent of PROMPT_COMMAND is precmd (), you can now use > GIT_PS1_SHOWCOLORHINTS with ZSH. > > Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> > --- > You like this more? I don't mind going either way.
Not really. If we need to avoid the \[\], it makes sense to have a separate function, but what I meant is that this function should be initially on the same file, and created in a separate patch.
-- Felipe Contreras