From 78e7f653310a1c7a9fee2950211bfdc11df454b1 Mon Sep 17 00:00:00 2001 From: alexg0 Date: Tue, 27 Jul 2010 13:41:53 -0500 Subject: [PATCH] coexist with emacs inferior mode --- lib/appearance.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/appearance.zsh b/lib/appearance.zsh index 69d0afc41..00cddedd7 100644 --- a/lib/appearance.zsh +++ b/lib/appearance.zsh @@ -15,8 +15,11 @@ if [[ "$terminfo[colors]" -ge 8 ]]; then fi fi -# disable zle inside emacs -[[ $TERM = 'dumb' && $EMACS = t ]] && unsetopt zle +# disable zle and prompt_cr inside emacs, confuses tramp +if [[ $TERM = 'dumb' && $EMACS = t ]]; then + unsetopt zle + unsetopt prompt_cr +fi #setopt no_beep setopt auto_cd