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

36
.zshrc
View file

@ -1,14 +1,25 @@
if [ ! -d $HOME/antigen ]; then
git clone https://github.com/zsh-users/antigen.git $HOME/antigen
fi
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
source $HOME/antigen/antigen.zsh
if [ ! -d $HOME/antigen ]; then
git clone https://github.com/zsh-users/antigen.git $HOME/antigen
fi
# Load the oh-my-zsh library
antigen use oh-my-zsh
source $HOME/antigen/antigen.zsh
# Bundles from the default repo (robbyrussel's oh-my-zsh)
antigen-bundles <<EOF
# Load the oh-my-zsh library
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussel's oh-my-zsh)
antigen-bundles <<EOF
git
git-extras
@ -20,12 +31,13 @@ zsh-users/zsh-syntax-highlighting
EOF
# Themes
antigen-theme kphoen
# Themes
antigen-theme kphoen
antigen-apply
antigen-apply
unsetopt correct_all
unsetopt correct_all
fi
export PATH=$HOME/bin:$PATH
export EDITOR="emacsclient"