Wrap pyenv in existence check
This commit is contained in:
parent
16889bf1d2
commit
da58d60002
1 changed files with 6 additions and 3 deletions
|
@ -28,9 +28,12 @@ export PATH=$PATH:~/.bin
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
|
|
||||||
# Installed with https://github.com/pyenv/pyenv-installer
|
# Installed with https://github.com/pyenv/pyenv-installer
|
||||||
|
if [ -x "$(command -v pyenv)" ]
|
||||||
|
then
|
||||||
export PATH="/home/nicholas/.pyenv/bin:$PATH"
|
export PATH="/home/nicholas/.pyenv/bin:$PATH"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
eval "$(pyenv virtualenv-init -)"
|
eval "$(pyenv virtualenv-init -)"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f /usr/local/etc/bash_completion ]
|
if [ -f /usr/local/etc/bash_completion ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue