On Sun, Nov 23, 2008 at 11:26:58PM +0100, Frank Terbeck wrote: >> [snip] > Oops, yes. That's obviously wrong. Thanks for noticing. > That should be: PS1='%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}%f%# ' > >>> [snip] >> Thanks, setting promptsubst worked fine. >> >> I followed the introduction in the zshcontrib man page. Would it be >> possible to add this information there so other users can set it up without >> any problems? > > Absolutely. I thought I had mentioned it. Seems like I forgot. > > Patch for both issues included below. Thanks for your quick help. Works perfectly. >> Just curious, what other ways to use vcs_info than ${vcs_info_msg_0_} >> exist? > > Well, a lot of people (me included) build their prompt in precmd(). > That way you can always get the fresh value out of $vcs_info_msg_0_ > without having to use prompt_subst. Here is how I am building my > prompt, if you're wondering what I'm talking about: > <http://ft.bewatermyfriend.org/comp/zsh/functions/prompt_ft_setup.html> > > Regards, Frank Thanks, this sounds very interesting. Simon -- + privacy is necessary + using http://gnupg.org + public key id: 0x6115F804EFB33229
Attachment:
pgptY5topz6Wb.pgp
Description: PGP signature