From da58d60002def358b963d8cd5cda6236c26dafda Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Mon, 23 Jul 2018 10:25:50 -0400 Subject: [PATCH] Wrap pyenv in existence check --- bash/.profile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bash/.profile b/bash/.profile index 670722b..b0a6b7d 100644 --- a/bash/.profile +++ b/bash/.profile @@ -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