summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-11-24 09:56:07 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-11-24 09:56:07 +0000
commit21e1b38ffb47911c6c076a0d5bdc4f726b566b38 (patch)
tree2880be09687b81e8e50d5732a53dd139f2e84fd5 /Doc/Zsh
parent6636282a1607343553c2aab52defc165b0e97838 (diff)
downloadzsh-21e1b38ffb47911c6c076a0d5bdc4f726b566b38.tar.gz
zsh-21e1b38ffb47911c6c076a0d5bdc4f726b566b38.tar.xz
zsh-21e1b38ffb47911c6c076a0d5bdc4f726b566b38.zip
13482: Frank Terbeck: fix some prompt docs for vcs info
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/contrib.yo5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 43338192a..4c2c7abc7 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -362,12 +362,15 @@ zstyle ':vcs_info:*' formats       \
     '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
 zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
 precmd () { vcs_info }
-PS1='%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}'"%f%# ')
+PS1='%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}%f%# ')
 
 Obviously, the last two lines are there for demonstration: You need to
 call var(vcs_info) from your var(precmd) function. Once that is done you need
 a tt(single quoted) var('${vcs_info_msg_0_}') in your prompt.
 
+To be able to use var('${vcs_info_msg_0_}') directly in your prompt like
+this, you will need to have the tt(PROMPT_SUBST) option enabled.
+
 Now call the tt(vcs_info_printsys) utility from the command line:
 
 example(% vcs_info_printsys