X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=.bashrc;h=a9ac99de919a16f7142387c4f53d43d5a76fcb5f;hb=404d0179693007fe21b917ea0490bafd8b33bcf6;hp=f516a374c36abd98560693fb7bfb4ed4247152fb;hpb=37eec285330d0072c8095e64631b4ad8f0c92d26;p=dotfiles.git diff --git a/.bashrc b/.bashrc index f516a37..a9ac99d 100644 --- a/.bashrc +++ b/.bashrc @@ -170,10 +170,18 @@ if type -p pip >/dev/null 2>&1 || type -p pip3 >/dev/null 2>&1; then complete -F _pip_completion_loader pip pip2 pip2.7 pip3 pip3.4 pip3.5 pip3.6 pip3.7 pip3.8 pip3.9 pip3.10 pip3.11 fi -#if which pyenv >/dev/null 2>&1; then -# eval "`pyenv init -`" -# eval "`pyenv virtualenv-init -`" -#fi +if test -d "$HOME"/.pyenv +then + PYENV_ROOT="$HOME"/.pyenv + export PYENV_ROOT + PATH="$PYENV_ROOT/bin:$PATH" + if which pyenv >/dev/null 2>&1; then +# eval "`pyenv init --path`" + eval "`pyenv init -`" + eval "`pyenv virtualenv-init -`" + fi +fi + . virtualenvwrapper_lazy.sh 2>/dev/null