about summary refs log tree commit diff
path: root/.config/zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh')
-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