diff --git a/src/stage2/30_zmodule.zsh.erb b/src/stage2/30_zmodule.zsh.erb index 3cc9f2e..9c233e2 100644 --- a/src/stage2/30_zmodule.zsh.erb +++ b/src/stage2/30_zmodule.zsh.erb @@ -113,7 +113,7 @@ Startup options: if (( ! ${#zfunctions} )); then # _* functions are autoloaded by compinit # prompt_*_setup functions are autoloaded by promptinit - zfunctions+=(${^zfpaths}/^(*.*|_*|prompt_*_setup)(N-.:t)) + zfunctions+=(${^zfpaths}/^(*~|*.zwc(|.old)|_*|prompt_*_setup)(N-.:t)) fi if (( ! ${#zscripts} )); then zscripts+=(${zdir}/(init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh))(NOL[1])) diff --git a/zimfw.zsh b/zimfw.zsh index b69f5d8..10d8918 100644 --- a/zimfw.zsh +++ b/zimfw.zsh @@ -216,7 +216,7 @@ Startup options: if (( ! ${#zfunctions} )); then # _* functions are autoloaded by compinit # prompt_*_setup functions are autoloaded by promptinit - zfunctions+=(${^zfpaths}/^(*.*|_*|prompt_*_setup)(N-.:t)) + zfunctions+=(${^zfpaths}/^(*~|*.zwc(|.old)|_*|prompt_*_setup)(N-.:t)) fi if (( ! ${#zscripts} )); then zscripts+=(${zdir}/(init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh))(NOL[1]))