|
|
@ -1,7 +1,9 @@ |
|
|
|
#!/bin/zsh |
|
|
|
#!/bin/zsh |
|
|
|
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
export PATH="$HOME/.pyenv/bin:$PATH" |
|
|
|
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`. |
|
|
|
# For whatever reason the linux version of pyenv doesnt install `pyenv-virtualenv-init`. |
|
|
|
eval "$(pyenv init -)" |
|
|
|
eval "$(pyenv init -)" |
|
|
@ -9,9 +11,20 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if which pyenv-virtualenv-init > /dev/null; then |
|
|
|
if which pyenv-virtualenv-init > /dev/null; then |
|
|
|
|
|
|
|
export PATH=/usr/local/bin:$PATH |
|
|
|
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv" |
|
|
|
|
|
|
|
export PATH="$PYENV_ROOT/bin:$PATH" |
|
|
|
eval "$(pyenv init -)" |
|
|
|
eval "$(pyenv init -)" |
|
|
|
eval "$(pyenv virtualenv-init -)" |
|
|
|
eval "$(pyenv virtualenv-init -)" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if hash pyenv 2>/dev/null; then |
|
|
|
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv" |
|
|
|
|
|
|
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" |
|
|
|
|
|
|
|
eval "$(pyenv init -)" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# RVM configuration |
|
|
|
# RVM configuration |
|
|
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" |
|
|
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" |
|
|
|