From a3e784bd5e806e80d1ba3488b2f19c08ae2fcd1b Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 27 Jun 2023 14:33:40 +1000 Subject: [PATCH] Always override ZDOTDIR if it's just set to ~ --- zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/zshenv b/zshenv index fa2dd21..980d528 100644 --- a/zshenv +++ b/zshenv @@ -28,4 +28,5 @@ fi # The real zsh config lives in XDG_CONFIG_HOME! ;) : ${ZDOTDIR:=$XDG_CONFIG_HOME/zsh} +[[ $ZDOTDIR = $HOME ]] && ZDOTDIR=$XDG_CONFIG_HOME/zsh source $ZDOTDIR/zshenv