diff --git a/config/zsh/.zshenv b/config/zsh/.zshenv index 9ecd7ff..df90b42 100644 --- a/config/zsh/.zshenv +++ b/config/zsh/.zshenv @@ -34,6 +34,7 @@ export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc" export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc" export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" export ZLIB="${ZDOTDIR}/lib" +export PYENV_ROOT="$HOME/.pyenv" # source $XDG_CONFIG_HOME/zsh/.zshrc diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index c6e93d1..3ccb604 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -79,6 +79,13 @@ if [ "$(uname -s)" = "Darwin" ]; then fi fi +# If using Pyenv, import the shell integration if availible +if [[ -d "$PYENV_ROOT" ]]; then + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" + eval "$(pyenv virtualenv-init -)" +fi + # If using Tilix, import the shell integration if availible if [ $TILIX_ID ] || [ $VTE_VERSION ] && [[ -f "/etc/profile.d/vte.sh" ]]; then source /etc/profile.d/vte.sh