diff options
author | Matt Strapp <matt@mattstrapp.net> | 2023-03-08 10:49:07 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2023-03-08 10:49:07 -0600 |
commit | b2dcdbb578fc058955c5879d0f69b63a53d960b7 (patch) | |
tree | cd28863ee2466c709d20bc857f6efe8ccd2cef83 /zsh/.config | |
parent | remove profile completely (diff) | |
download | dotfiles-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
Diffstat (limited to 'zsh/.config')
-rw-r--r-- | zsh/.config/zsh/.zshenv | 10 |
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" |