Skip to content
Browse files

fix rprompt setting for shell in Emacs

  • Loading branch information...
1 parent 04f8008 commit 9056e7da22ae641ca8e96b5b34b2c7ece154b00d @syohex committed Apr 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 shell/zshrc
View
5 shell/zshrc
@@ -297,7 +297,10 @@ precmd () {
fi
}
_DIRPART=%B%{$fg[cyan]%}'[%(5~,%-2~/.../%2~,%~)]'%{$reset_color%}%b
-RPROMPT=%B"%1(v|%F{magenta}%1v%f%F{yellow}%2v%f|)"%b${_DIRPART}
+if [ "$EMACS" == "" ]
+then
+ RPROMPT=%B"%1(v|%F{magenta}%1v%f%F{yellow}%2v%f|)"%b${_DIRPART}
+fi
## for emacs ansi-term. notify pwd to ansi-term
function chpwd_emacs_ansi_term() {

0 comments on commit 9056e7d

Please sign in to comment.
Something went wrong with that request. Please try again.