.bashrc: Enable Pyenv support

Gotta clone the Pyenv repo to ~/.pyenv, see:

    https://github.com/yyuu/pyenv#basic-github-checkout

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-10-29 17:33:31 +03:00
parent 00ee82685a
commit baaf94e155
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -41,6 +41,15 @@ if test $(which npm); then
PATH=$PATH:node_modules/.bin
fi
# Enable pyenv
# See: https://github.com/yyuu/pyenv#basic-github-checkout
if [[ -d ~/.pyenv ]]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
# If a private bin directory exists, add it to PATH
[[ -d ~/bin ]] && PATH="$PATH:~/bin"