2014-09-26 13:55:55 +00:00
|
|
|
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
|
2013-05-23 23:17:11 +00:00
|
|
|
|
2014-09-26 13:55:55 +00:00
|
|
|
source $HOME/antigen/antigen.zsh
|
2013-05-23 23:17:11 +00:00
|
|
|
|
2014-09-26 13:55:55 +00:00
|
|
|
# Load the oh-my-zsh library
|
|
|
|
antigen use oh-my-zsh
|
2013-05-23 23:17:11 +00:00
|
|
|
|
2014-09-26 13:55:55 +00:00
|
|
|
# Bundles from the default repo (robbyrussel's oh-my-zsh)
|
|
|
|
antigen-bundles <<EOF
|
2013-05-23 23:17:11 +00:00
|
|
|
|
|
|
|
git
|
|
|
|
git-extras
|
|
|
|
git-remote-branch
|
|
|
|
pip
|
|
|
|
ssh-agent
|
|
|
|
|
|
|
|
zsh-users/zsh-syntax-highlighting
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2014-09-26 13:55:55 +00:00
|
|
|
# Themes
|
|
|
|
antigen-theme kphoen
|
2013-05-23 23:17:11 +00:00
|
|
|
|
2014-09-26 13:55:55 +00:00
|
|
|
antigen-apply
|
2013-05-23 23:17:11 +00:00
|
|
|
|
2014-09-26 13:55:55 +00:00
|
|
|
unsetopt correct_all
|
|
|
|
fi
|
2013-05-23 23:17:11 +00:00
|
|
|
|
|
|
|
export PATH=$HOME/bin:$PATH
|
|
|
|
export EDITOR="emacsclient"
|
|
|
|
export ALTERNATE_EDITOR=""
|
|
|
|
|
|
|
|
alias erl='rlwrap -a erl'
|
|
|
|
|
|
|
|
if which virtualenvwrapper.sh >/dev/null; then
|
|
|
|
source virtualenvwrapper.sh
|
|
|
|
fi
|
|
|
|
|
2013-08-14 02:11:19 +00:00
|
|
|
# Emacs Cask
|
|
|
|
if [ ! -d ${HOME}/.cask ]; then
|
2013-11-22 04:49:03 +00:00
|
|
|
curl -fsSkL https://raw.github.com/cask/cask.el/master/go | python
|
2013-05-23 23:17:11 +00:00
|
|
|
fi
|
2013-08-14 02:11:19 +00:00
|
|
|
export PATH="${HOME}/.cask/bin:$PATH"
|
2014-01-10 02:37:25 +00:00
|
|
|
|
|
|
|
if [ -d ${HOME}/.cabal/bin ]; then
|
|
|
|
export PATH="${HOME}/.cabal/bin:$PATH"
|
|
|
|
fi
|