zsh - fix issue in emacs tramp mode
authorPeng Li <seudut@gmail.com>
Sat, 25 Feb 2017 17:30:57 +0000 (01:30 +0800)
committerPeng Li <seudut@gmail.com>
Sat, 25 Feb 2017 17:30:57 +0000 (01:30 +0800)
zsh/zshrc

index 7a5b102..1ea7de2 100644 (file)
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -3,6 +3,9 @@
 # Darwin or Linux
 OSNAME=`uname` 
 
+# For Emacs Tramp mode
+[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
+
 autoload colors
 colors