diff --git a/shell/.config/shell/exports b/shell/.config/shell/exports index acaaff7..5585ca2 100644 --- a/shell/.config/shell/exports +++ b/shell/.config/shell/exports @@ -24,8 +24,11 @@ export PYTHONSTARTUP="${XDG_CONFIG_HOME:-$HOME/.config}/python/startup" # Custom Python history file export PYTHON_HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/python/history" +# Pyenv root: +[ -x "$(command -v pyenv)" ] && export PYENV_ROOT="$HOME/.pyenv" + # PostgreSQL config file -export PSQLRC="${XDG_CONFIG_HOME:-$HOME/.config}/psql/rc" +[ -x "$(command -v psql)" ] && export PSQLRC="${XDG_CONFIG_HOME:-$HOME/.config}/psql/rc" # Wget config file export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/rc" diff --git a/shell/.config/shell/profile b/shell/.config/shell/profile index 6b1714d..17b1eaf 100644 --- a/shell/.config/shell/profile +++ b/shell/.config/shell/profile @@ -7,3 +7,9 @@ for file in ~/.config/shell/{path,exports,aliases,functions,extra}; do [ -r "$file" ] && [ -f "$file" ] && source "$file"; done; unset file; + +# Setup pyenv, if it is installed: +if [ -x "$(command -v pyenv)" ]; then + eval "$(pyenv init --path)" + eval "$(pyenv init -)" +fi