From 092e4d7c953090ee1b73f7d640d0240dd0ebc96c Mon Sep 17 00:00:00 2001 From: cscherr Date: Mon, 19 May 2025 13:20:52 +0200 Subject: [PATCH] pyenv is back --- .zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.zshrc b/.zshrc index 676c580..292903e 100644 --- a/.zshrc +++ b/.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