From a8b06c00a17d44e5c24a8720caada92f41b8c3cf Mon Sep 17 00:00:00 2001 From: reonokiy Date: Mon, 19 Aug 2024 21:22:02 +0800 Subject: [PATCH] add pyenv --- dot_zshrc.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index c430cb0..a255bfa 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -129,6 +129,13 @@ if command -v zoxide &> /dev/null; then eval "$(zoxide init zsh)" fi +# pyenv config +if command -v pyenv &> /dev/null; then + export PYENV_ROOT="$HOME/.pyenv" + [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi + # nix config if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer