From 89e17bc508f853cdb6bde839b40b2f3264352197 Mon Sep 17 00:00:00 2001 From: shokinn Date: Thu, 1 Sep 2022 17:28:31 +0200 Subject: [PATCH] Initialize pyenv the proper way --- dotfiles/z_profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/z_profile b/dotfiles/z_profile index bd995cf..6c09edd 100644 --- a/dotfiles/z_profile +++ b/dotfiles/z_profile @@ -19,7 +19,10 @@ export EDITOR {%@@ if profile == 'VWAGWOY00349' @@%} [[ $(command -v /opt/homebrew/bin/brew) ]] && eval "$(/opt/homebrew/bin/brew shellenv)" {%@@ endif @@%} -[[ $(command -v pyenv) ]] && eval "$(pyenv init -)" + +[[ $(command -v pyenv) ]] && export PYENV_ROOT="$HOME/.pyenv" +[[ $(command -v pyenv) ]] && export PATH="$PYENV_ROOT/bin:$PATH" +[[ $(command -v pyenv) ]] && eval "$(pyenv init --path)" {%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' @@%} # Set DOTNET_ROOT enviroment variable