Add case in .zshrc for dumb terminals

This commit is contained in:
Correl Roush 2014-09-26 09:55:55 -04:00
parent 3d36eb4462
commit b20efb9e68

12
.zshrc
View file

@ -1,3 +1,14 @@
if [[ $TERM == "dumb" ]]; then # in emacs
PS1='%(?..[%?])%!:%~%# '
# for tramp to not hang, need the following. cf:
# http://www.emacswiki.org/emacs/TrampMode
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
else
if [ ! -d $HOME/antigen ]; then
git clone https://github.com/zsh-users/antigen.git $HOME/antigen
fi
@ -26,6 +37,7 @@ antigen-theme kphoen
antigen-apply
unsetopt correct_all
fi
export PATH=$HOME/bin:$PATH
export EDITOR="emacsclient"