mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-24 16:33:14 +01:00
Sets PyEnv paths, if installed
This commit is contained in:
parent
cc73058bd7
commit
febd166b0b
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user