mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-21 19:18:41 +00:00
50 lines
919 B
Bash
50 lines
919 B
Bash
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
|
|
|
|
source $HOME/antigen/antigen.zsh
|
|
|
|
# Load the oh-my-zsh library
|
|
antigen use oh-my-zsh
|
|
|
|
antigen bundles <<EOF
|
|
|
|
git
|
|
git-extras
|
|
git-remote-branch
|
|
pip
|
|
ssh-agent
|
|
nojhan/liquidprompt
|
|
|
|
zsh-users/zsh-syntax-highlighting
|
|
|
|
EOF
|
|
|
|
# Themes
|
|
# antigen-theme kphoen
|
|
|
|
antigen apply
|
|
|
|
unsetopt correct_all
|
|
fi
|
|
|
|
export PATH=$HOME/bin:$PATH
|
|
export EDITOR="emacsclient"
|
|
export ALTERNATE_EDITOR=""
|
|
|
|
alias erl='rlwrap -a erl'
|
|
|
|
if [ -d ${HOME}/.cabal/bin ]; then
|
|
export PATH="${HOME}/.cabal/bin:$PATH"
|
|
fi
|