Skip to content

Commit 6e496b9

Browse files
author
Your Name
committed
Use same style as zsh documentation
Both the zsh manpage, and the documentation at: https://zsh.sourceforge.io/Doc/Release/User-Contributions.html#Version-Control-Information which is linked in the progit book talk about single quoted '${vcs_info_msg_0_}' instead of trying to escape the \$ Their syntax is less confusing if anyone ends up searching for more information in the documentation.
1 parent fa0e325 commit 6e496b9

File tree

1 file changed

+2
-2
lines changed
  • book/A-git-in-other-environments/sections

1 file changed

+2
-2
lines changed

book/A-git-in-other-environments/sections/zsh.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ autoload -Uz vcs_info
2828
precmd_vcs_info() { vcs_info }
2929
precmd_functions+=( precmd_vcs_info )
3030
setopt prompt_subst
31-
RPROMPT=\$vcs_info_msg_0_
32-
# PROMPT=\$vcs_info_msg_0_'%# '
31+
RPROMPT='${vcs_info_msg_0_}'
32+
# PROMPT='${vcs_info_msg_0_}%# '
3333
zstyle ':vcs_info:git:*' formats '%b'
3434
----
3535

0 commit comments

Comments
 (0)