Sets PyEnv paths, if installed

This commit is contained in:
Alicia Sykes 2023-09-04 20:17:03 +01:00
parent cc73058bd7
commit febd166b0b
2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc"
export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc" export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc"
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
export ZLIB="${ZDOTDIR}/lib" export ZLIB="${ZDOTDIR}/lib"
export PYENV_ROOT="$HOME/.pyenv"
# source $XDG_CONFIG_HOME/zsh/.zshrc # source $XDG_CONFIG_HOME/zsh/.zshrc

View File

@ -79,6 +79,13 @@ if [ "$(uname -s)" = "Darwin" ]; then
fi fi
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 using Tilix, import the shell integration if availible
if [ $TILIX_ID ] || [ $VTE_VERSION ] && [[ -f "/etc/profile.d/vte.sh" ]]; then if [ $TILIX_ID ] || [ $VTE_VERSION ] && [[ -f "/etc/profile.d/vte.sh" ]]; then
source /etc/profile.d/vte.sh source /etc/profile.d/vte.sh