pyenv is back

This commit is contained in:
cscherr 2025-05-19 13:20:52 +02:00
parent 81e536bfca
commit 092e4d7c95
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7

10
.zshrc
View file

@ -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