From 54b1eaaa88cc6fb71afeb0aba72539fb581c0fdd Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 20 Aug 2016 21:58:25 +0300 Subject: [PATCH] .zshrc: Use simpler pyenv initialization Instead of using it from a local git checkout I'll just use it from Homebrew. --- .zshrc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.zshrc b/.zshrc index 6f97a7c..c36c6c2 100644 --- a/.zshrc +++ b/.zshrc @@ -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