diff --git a/initializations.zsh b/initializations.zsh index 830c483..4994674 100644 --- a/initializations.zsh +++ b/initializations.zsh @@ -1,13 +1,15 @@ #!/bin/zsh if [[ "$OSTYPE" == "linux-gnu" ]]; then - export PATH=/usr/local/bin:$PATH - export PYENV_ROOT="$HOME/.pyenv" - export PATH="$PYENV_ROOT/bin:$PATH" + if which pyenv > /dev/null; then + export PATH=/usr/local/bin:$PATH + export PYENV_ROOT="$HOME/.pyenv" + export PATH="$PYENV_ROOT/bin:$PATH" # For whatever reason the linux version of pyenv doesnt install `pyenv-virtualenv-init`. - eval "$(pyenv init -)" - eval "$(pyenv virtualenv-init -)" + eval "$(pyenv init -)" + eval "$(pyenv virtualenv-init -)" + fi fi if which pyenv-virtualenv-init > /dev/null; then