Always override ZDOTDIR if it's just set to ~

This commit is contained in:
Danielle McLean 2023-06-27 14:33:40 +10:00
parent 9a16f59378
commit a3e784bd5e
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

1
zshenv
View file

@ -28,4 +28,5 @@ fi
# The real zsh config lives in XDG_CONFIG_HOME! ;) # The real zsh config lives in XDG_CONFIG_HOME! ;)
: ${ZDOTDIR:=$XDG_CONFIG_HOME/zsh} : ${ZDOTDIR:=$XDG_CONFIG_HOME/zsh}
[[ $ZDOTDIR = $HOME ]] && ZDOTDIR=$XDG_CONFIG_HOME/zsh
source $ZDOTDIR/zshenv source $ZDOTDIR/zshenv