diff options
author | Starfall <us@starfall.systems> | 2022-12-01 14:03:20 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-12-01 14:03:20 -0600 |
commit | 058b5486c402b492c2e384fb0a12417d78425121 (patch) | |
tree | addaa824dcbd8f76d80fe7061ad76361c55c09eb | |
parent | 65798f0e57fae5a38e02cbc51a4fbbffd1d55a0d (diff) |
zsh: add xdg environment variables
-rw-r--r-- | .config/zsh/.zshenv | 7 |
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 |