From 5587ea14da2088366522fc28dc60bb3d4a99fbe0 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Thu, 2 Jan 2020 12:11:51 -0500 Subject: [PATCH] Update autoload functions glob based on glob used in Prezto: https://github.com/sorin-ionescu/prezto/blob/1bc0da5f48init.zsh#L79 and in compinit: https://github.com/zsh-users/zsh/blob/b816291a17/Completion/compinit#L499 --- src/stage2/30_zmodule.zsh.erb | 2 +- zimfw.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]))