From a2ad4853eda31a6777a8d2e0cc7fb99a5194a7af Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 23 Aug 2020 16:38:34 +0100 Subject: [PATCH] zsh: use ZDOTDIR over XDG_CONFIG_HOME ZSH is programmed to prefer this ordering, so honor that in the ZSH configuration as well. Signed-off-by: Joe Groocock --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 7d85ea6..6567cf1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,5 @@ # Config and cache directory paths -ZSH_DIR="$XDG_CONFIG_HOME/zsh" +ZSH_DIR="${ZDOTDIR:-$XDG_CONFIG_HOME/zsh}" LOG_DIR="$XDG_DATA_HOME/logs" HISTFILE="$XDG_DATA_HOME/zsh/history" HISTSIZE=999999