summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zsmith@newhopechurch.tv>2025-06-30 09:38:19 -0500
committerZach Smith <zsmith@newhopechurch.tv>2025-06-30 09:38:19 -0500
commit9d5498e0a8be1b987c5584659a0e97116ca50079 (patch)
tree82aa56d9a8a1ad815563fc454c5deab0be92d1ab
parent5fabb86ef6b456bda48b3671858cb4c8479c824a (diff)
Define XDG_CONFIG_HOME in zshrc if it is not already
-rw-r--r--zsh/zshrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 0e87993..f8fdac5 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -11,6 +11,7 @@ elif [ -d "$HOME/.zplug" ]; then
export ZPLUG_INSTALLED="y"
source "$HOME/.zplug/init.zsh"
fi
+[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config"
HISTFILE="$XDG_CONFIG_HOME/zsh/hist"
SAVEHIST=1000
HISTSIZE=1000