dotfiles/dot_zshenv.tmpl
Dan Barber b46553c076 Set XDG_RUNTIME_DIR
We need this to be in different places depending on the OS.
2024-09-27 16:31:31 -05:00

15 lines
496 B
Cheetah

# XDG
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CONFIG_HOME=$HOME/.config
export XDG_STATE_HOME=$HOME/.local/state
export XDG_CACHE_HOME=$HOME/.cache
{{ if eq .chezmoi.os "darwin" -}}
export XDG_RUNTIME_DIR=$HOME/.run
{{ else if eq .chezmoi.os "linux" -}}
export XDG_RUNTIME_DIR=/run/user/$UID
{{ end }}
# Tell various apps where to find their config
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export PSQLRC="$XDG_CONFIG_HOME/pg/psqlrc"
export ASDF_CONFIG_FILE="$XDG_CONFIG_HOME/asdf/asdfrc"