pyenv is back
This commit is contained in:
parent
81e536bfca
commit
092e4d7c95
1 changed files with 10 additions and 0 deletions
10
.zshrc
10
.zshrc
|
@ -473,3 +473,13 @@ if [ -f ~/.zshenv ]; then
|
|||
else
|
||||
touch ~/.zshenv
|
||||
fi
|
||||
|
||||
### load pyenv if it exists
|
||||
if [[ -d $HOME/.pyenv ]]; then
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
pyenv() {
|
||||
eval "$(command pyenv init -)"
|
||||
pyenv "$@"
|
||||
}
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue