Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: vcs_info first-time failure



Clint Adams <clint@xxxxxxx>:
> Someone complained that vcs_info didn't work on its first invocation.

Okay, if we do it like this (and I agree it's the more user-friendly
approach), I think the docs should be adjusted like this:


Index: Doc/Zsh/contrib.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/contrib.yo,v
retrieving revision 1.86
diff -u -r1.86 contrib.yo
--- Doc/Zsh/contrib.yo	19 Sep 2008 15:09:06 -0000	1.86
+++ Doc/Zsh/contrib.yo	22 Sep 2008 16:40:18 -0000
@@ -345,7 +345,7 @@
 
 To load var(vcs_info):
 
-example(autoload -Uz vcs_info && vcs_info)
+example(autoload -Uz vcs_info)
 
 If you plan to use the information from var(vcs_info) in your prompt (which
 is its primary use), you need to enable the tt(PROMPT_SUBST) option.



Messages sorted by: Reverse Date, Date, Thread, Author