From 561596711f6bc49085a0c54d784d61e075cab0cc Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 27 Jan 2025 03:00:17 -0800 Subject: [PATCH] Add pyenv support --- init.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.zsh b/init.zsh index 37eb0b2..ff9d33f 100644 --- a/init.zsh +++ b/init.zsh @@ -239,6 +239,13 @@ if cmd_exists direnv; then eval "$(direnv hook zsh)" fi +# Pyenv +if cmd_exists pyenv; then + export PYENV_ROOT="${HOME}/.pyenv" + [[ -d "${PYENV_ROOT/bin}" ]] && export PATH="${PYENV_ROOT}/bin:${PATH}" + eval "$(pyenv init - zsh)" +fi + # Bookmarks [[ -v BM_CWD_LS ]] || BM_CWD_LS=1 [[ -v BM_MODE ]] || BM_MODE=daemon