mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-15 03:00:11 +00:00
Add case in .zshrc for dumb terminals
This commit is contained in:
parent
3d36eb4462
commit
b20efb9e68
1 changed files with 24 additions and 12 deletions
12
.zshrc
12
.zshrc
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue