about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-12-01 14:03:20 -0600
committerStarfall <us@starfall.systems>2022-12-01 14:03:20 -0600
commit058b5486c402b492c2e384fb0a12417d78425121 (patch)
treeaddaa824dcbd8f76d80fe7061ad76361c55c09eb
parent65798f0e57fae5a38e02cbc51a4fbbffd1d55a0d (diff)
zsh: add xdg environment variables
-rw-r--r--.config/zsh/.zshenv7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv
index c5d2066..819e611 100644
--- a/.config/zsh/.zshenv
+++ b/.config/zsh/.zshenv
@@ -9,6 +9,13 @@ if [[ $INTELLIJ -eq 1 ]]; then
 	export PATH=/usr/local/bin:/usr/bin:$PATH
 fi
 
+if [[ -n $XDG_RUNTIME_DIR ]]; then
+	export XDG_CONFIG_HOME="$HOME/.config"
+	export XDG_CACHE_HOME="$HOME/.cache"
+	export XDG_DATA_HOME="$HOME/.local/share"
+	export XDG_STATE_HOME="$HOME/.local/state"
+fi
+
 [[ -f "$HOME/.cargo/env" ]] &&  . "$HOME/.cargo/env"
 
 if command -v bat &> /dev/null; then