summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2023-03-08 10:49:07 -0600
committerMatt Strapp <matt@mattstrapp.net>2023-03-08 10:49:07 -0600
commitb2dcdbb578fc058955c5879d0f69b63a53d960b7 (patch)
treecd28863ee2466c709d20bc857f6efe8ccd2cef83
parentremove profile completely (diff)
downloaddotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.tar
dotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.tar.gz
dotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.tar.bz2
dotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.tar.lz
dotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.tar.xz
dotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.tar.zst
dotfiles-b2dcdbb578fc058955c5879d0f69b63a53d960b7.zip
set XDG only if not already set
-rw-r--r--zsh/.config/zsh/.zshenv10
1 files changed, 5 insertions, 5 deletions
diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv
index 72514f4..720683d 100644
--- a/zsh/.config/zsh/.zshenv
+++ b/zsh/.config/zsh/.zshenv
@@ -13,11 +13,11 @@ export EDITOR="lvim +star"
export BROWSER="chromium"
# ~/ Clean-up:
-export XDG_CONFIG_HOME="$HOME/.config"
-export XDG_DATA_HOME="$HOME/.local/share"
-export XDG_CACHE_HOME="$HOME/.cache"
-export XDG_STATE_HOME="$HOME/.local/state"
-export XDG_BIN_HOME="$HOME/.local/bin"
+[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME="$HOME/.config"
+[ -z "$XDG_DATA_HOME" ] && export XDG_DATA_HOME="$HOME/.local/share"
+[ -z "$XDG_CACHE_HOME" ] && export XDG_CACHE_HOME="$HOME/.cache"
+[ -z "$XDG_STATE_HOME" ] && export XDG_STATE_HOME="$HOME/.local/state"
+[ -z "$XDG_BIN_HOME" ] && export XDG_BIN_HOME="$HOME/.local/bin"
export USERXSESSION="$XDG_CACHE_HOME/X11/xsession"
export USERXSESSIONRC="$XDG_CACHE_HOME/X11/xsessionrc"