Wrap pyenv in existence check

This commit is contained in:
Nicole Tietz-Sokolskaya 2018-07-23 10:25:50 -04:00
parent 16889bf1d2
commit da58d60002

View file

@ -28,9 +28,12 @@ export PATH=$PATH:~/.bin
export TERM=xterm-256color
# Installed with https://github.com/pyenv/pyenv-installer
export PATH="/home/nicholas/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
if [ -x "$(command -v pyenv)" ]
then
export PATH="/home/nicholas/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
if [ -f /usr/local/etc/bash_completion ]
then