Set XDG_RUNTIME_DIR

We need this to be in different places depending on the OS.
This commit is contained in:
Dan Barber 2024-09-27 16:31:31 -05:00
parent 8e1eda3798
commit b46553c076

View File

@ -3,7 +3,11 @@ 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"