Unverified Commit 1689e9bb authored by Alexander Schlarb's avatar Alexander Schlarb Committed by GitHub
Browse files

zsh_reload: respect `$ZDOTDIR` when searching for `.zshrc` (#7706)

parent befdb464
......@@ -3,7 +3,7 @@ src() {
autoload -U compinit zrecompile
compinit -i -d "$cache/zcomp-$HOST"
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
for f in ${ZDOTDIR:-~}/.zshrc "$cache/zcomp-$HOST"; do
zrecompile -p $f && command rm -f $f.zwc.old
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment