From 1689e9bb907ab184d7418dd88bc2639a794c916d Mon Sep 17 00:00:00 2001 From: Alexander Schlarb <246386+alexander255@users.noreply.github.com> Date: Fri, 28 Feb 2020 20:01:35 +0000 Subject: [PATCH] zsh_reload: respect `$ZDOTDIR` when searching for `.zshrc` (#7706) --- plugins/zsh_reload/zsh_reload.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/zsh_reload/zsh_reload.plugin.zsh b/plugins/zsh_reload/zsh_reload.plugin.zsh index 51048ba9d..83f8da733 100644 --- a/plugins/zsh_reload/zsh_reload.plugin.zsh +++ b/plugins/zsh_reload/zsh_reload.plugin.zsh @@ -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