Compare commits

...

2 Commits

Author SHA1 Message Date
Daniil Fajnberg a6a3d3a759 better zsh file setup 2022-02-17 10:35:01 +01:00
Daniil Fajnberg f526d17524 pyenv stuff 2022-02-17 10:31:59 +01:00
4 changed files with 13 additions and 1 deletions

View File

@ -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"

View File

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

1
shell/.zprofile Symbolic link
View File

@ -0,0 +1 @@
.config/shell/profile