From 058b5486c402b492c2e384fb0a12417d78425121 Mon Sep 17 00:00:00 2001 From: Starfall Date: Thu, 1 Dec 2022 14:03:20 -0600 Subject: zsh: add xdg environment variables --- .config/zsh/.zshenv | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config') 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 -- cgit