pyenv stuff

This commit is contained in:
Daniil Fajnberg 2022-02-17 10:31:59 +01:00
parent 1280d2360d
commit f526d17524
2 changed files with 10 additions and 1 deletions

View File

@ -24,8 +24,11 @@ export PYTHONSTARTUP="${XDG_CONFIG_HOME:-$HOME/.config}/python/startup"
# Custom Python history file # Custom Python history file
export PYTHON_HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/python/history" export PYTHON_HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/python/history"
# Pyenv root:
[ -x "$(command -v pyenv)" ] && export PYENV_ROOT="$HOME/.pyenv"
# PostgreSQL config file # 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 # Wget config file
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/rc" export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/rc"

View File

@ -7,3 +7,9 @@ for file in ~/.config/shell/{path,exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"; [ -r "$file" ] && [ -f "$file" ] && source "$file";
done; done;
unset file; unset file;
# Setup pyenv, if it is installed:
if [ -x "$(command -v pyenv)" ]; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi