From: Penny Leach Date: Sun, 13 Sep 2009 12:38:03 +0000 (+0200) Subject: change the zsh prompt to only overwrite PS1 if it's the default X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=57e925f86b7f96b8642791ed08cae7b9cdd1480d;p=dotfiles%2Fzsh.git change the zsh prompt to only overwrite PS1 if it's the default --- diff --git a/.zsh.d/S03_prompt b/.zsh.d/S03_prompt index cf3abe3..4070305 100644 --- a/.zsh.d/S03_prompt +++ b/.zsh.d/S03_prompt @@ -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