]> git.mjollnir.org Git - dotfiles/zsh.git/commitdiff
change the zsh prompt to only overwrite PS1 if it's the default
authorPenny Leach <penny@mjollnir.org>
Sun, 13 Sep 2009 12:38:03 +0000 (14:38 +0200)
committerPenny Leach <penny@mjollnir.org>
Sun, 13 Sep 2009 12:38:03 +0000 (14:38 +0200)
.zsh.d/S03_prompt

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