]> git.mjollnir.org Git - dotfiles/zsh.git/commitdiff
Add a hook into zsh prompt for vcsh to insert information into
authorPenny Leach <penny@mjollnir.org>
Sun, 13 Sep 2009 16:57:29 +0000 (18:57 +0200)
committerPenny Leach <penny@mjollnir.org>
Sun, 13 Sep 2009 16:57:29 +0000 (18:57 +0200)
.zsh.d/S03_prompt

index 407030572014be6d51b129ad68e03659bad1b914..472da54e701e42ea0160ac1bf3dc6fd6c43b53aa 100644 (file)
@@ -17,6 +17,6 @@ precmd() {
   [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_"
 }
 
-[[ "${PS1:-}" = '%m%# ' ]] && PS1="%m:%(1v.%F{red}%1v%f:.)%~%# "
+[[ "${PS1:-}" = '%m%# ' ]] && PS1="%m:%(1v.%F{red}%1v%f:.)$PSEXTRA%~%# "
 
 # vim:ft=zsh