summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-09 20:46:44 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-09 20:46:44 -0500
commit5d68c683a11a36d4e3c3696da35c7bd0af89e41d (patch)
tree16c95bdb226aa9b67b64a18235de00197b937252
parentb81ab140dab23a4d5c3a87f150be625c9c28eb2b (diff)
downloadzsh-5d68c683a11a36d4e3c3696da35c7bd0af89e41d.tar.xz
zsh-5d68c683a11a36d4e3c3696da35c7bd0af89e41d.zip
use runtime_dir for xauthorityHEADmaster
-rwxr-xr-xzprofile3
1 files changed, 2 insertions, 1 deletions
diff --git a/zprofile b/zprofile
index f03ef41..c2ea419 100755
--- a/zprofile
+++ b/zprofile
@@ -14,7 +14,6 @@ export SUDO='doas'
export XDG_CACHE_HOME="$HOME/.cache"
export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME}/ansible/galaxy_cache"
export DOCKER_CONFIG="$XDG_CACHE_HOME/docker"
-export XAUTHORITY="$XDG_CACHE_HOME/Xauthority"
export XDG_CONFIG_HOME="$HOME/.config"
export ANSIBLE_HOME="${XDG_CONFIG_HOME}/ansible"
@@ -39,6 +38,8 @@ export XDG_STATE_HOME="$HOME/.local/state"
export LESSHISTFILE='-' # Disable this, but it would be considered a state file
export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file
+export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
+
# Path
setopt nullglob # Set in case .local/bin doesn't exist
for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs