mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-14 19:19:29 +00:00
39 lines
996 B
Bash
39 lines
996 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/.zgenom ]; then
|
|
git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"
|
|
fi
|
|
source $HOME/.zgenom/zgenom.zsh
|
|
if ! zgenom saved; then
|
|
zgenom ohmyzsh
|
|
zgenom ohmyzsh plugins/git
|
|
zgenom ohmyzsh plugins/git-extras
|
|
zgenom ohmyzsh plugins/pip
|
|
zgenom ohmyzsh plugins/pass
|
|
zgenom ohmyzsh plugins/ssh-agent
|
|
|
|
zgenom loadall <<EOF
|
|
nojhan/liquidprompt
|
|
zsh-users/zsh-syntax-highlighting
|
|
EOF
|
|
fi
|
|
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
|