mirror of
https://git.sr.ht/~danbarber/dotfiles
synced 2025-03-04 08:59:18 +00:00
Set XDG_RUNTIME_DIR
We need this to be in different places depending on the OS.
This commit is contained in:
parent
8e1eda3798
commit
b46553c076
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user