From baaf94e155cb230e8c6eed533373f678eb73e3b7 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 29 Oct 2014 17:33:31 +0300 Subject: [PATCH] .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 --- .bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bashrc b/.bashrc index 4e0a6ae..42c8c5e 100644 --- a/.bashrc +++ b/.bashrc @@ -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"