Browse Source

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

Alexander Schlarb 4 years ago
parent
commit
1689e9bb90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/zsh_reload/zsh_reload.plugin.zsh

+ 1 - 1
plugins/zsh_reload/zsh_reload.plugin.zsh

@@ -3,7 +3,7 @@ src() {
 	autoload -U compinit zrecompile
 	autoload -U compinit zrecompile
 	compinit -i -d "$cache/zcomp-$HOST"
 	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
 		zrecompile -p $f && command rm -f $f.zwc.old
 	done
 	done