From b46553c07624504ed8671923c03bcf8a2dd3887d Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 27 Sep 2024 16:31:31 -0500 Subject: [PATCH] Set XDG_RUNTIME_DIR We need this to be in different places depending on the OS. --- dot_zshenv => dot_zshenv.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename dot_zshenv => dot_zshenv.tmpl (68%) diff --git a/dot_zshenv b/dot_zshenv.tmpl similarity index 68% rename from dot_zshenv rename to dot_zshenv.tmpl index 0fb252f..2a455fc 100644 --- a/dot_zshenv +++ b/dot_zshenv.tmpl @@ -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"