Revert ".zshrc: Use simpler pyenv initialization"

This reverts commit 54b1eaaa88.

When I go back to Linux I realize how annoying this is. Let's just
use the git checkout version on all systems.
This commit is contained in:
Alan Orth 2016-12-05 22:46:54 +02:00
parent 55868c7122
commit 1b51f21ca1
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

15
.zshrc
View File

@ -68,8 +68,19 @@ export ANSIBLE_HOSTS=hosts
# Enable node version manager (nvm)
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
# Initialize pyenv if it exists
if which pyenv > /dev/null; then eval "$(pyenv init -)"; 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 jenv if it exists
if which jenv > /dev/null; then