Browse Source

Add pyenv check in initializations

master
Taylor Bockman 1 year ago
parent
commit
f8bccc51ac
  1. 12
      initializations.zsh

12
initializations.zsh

@ -1,13 +1,15 @@
#!/bin/zsh #!/bin/zsh
if [[ "$OSTYPE" == "linux-gnu" ]]; then if [[ "$OSTYPE" == "linux-gnu" ]]; then
export PATH=/usr/local/bin:$PATH if which pyenv > /dev/null; then
export PYENV_ROOT="$HOME/.pyenv" export PATH=/usr/local/bin:$PATH
export PATH="$PYENV_ROOT/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`. # For whatever reason the linux version of pyenv doesnt install `pyenv-virtualenv-init`.
eval "$(pyenv init -)" eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
fi
fi fi
if which pyenv-virtualenv-init > /dev/null; then if which pyenv-virtualenv-init > /dev/null; then

Loading…
Cancel
Save