.zshrc: Use simpler pyenv initialization

Instead of using it from a local git checkout I'll just use it from
Homebrew.
This commit is contained in:
Alan Orth 2016-08-20 21:58:25 +03:00
parent b3d9b6b5b4
commit 54b1eaaa88
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

15
.zshrc
View File

@ -79,19 +79,8 @@ if [[ -d ~/.nvm ]]; then
. ~/.nvm/nvm.sh
fi
# Enable pyenv
# See: https://github.com/yyuu/pyenv#basic-github-checkout
if [[ -d ~/.pyenv ]]; then
export PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# optionally enable pyenv-virtualenv
# See: https://github.com/yyuu/pyenv-virtualenv
if [[ -d ~/.pyenv/plugins/pyenv-virtualenv ]]; then
eval "$(pyenv virtualenv-init -)"
fi
fi
# Initialize pyenv if it exists
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
# If a private bin directory exists, add it to PATH
[[ -d ~/bin ]] && PATH=$PATH:~/bin