mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-14 19:19:29 +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
36
.zshrc
36
.zshrc
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue