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
This commit is contained in:
parent
ae3e71cb84
commit
5587ea14da
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ Startup options:
|
||||||
if (( ! ${#zfunctions} )); then
|
if (( ! ${#zfunctions} )); then
|
||||||
# _* functions are autoloaded by compinit
|
# _* functions are autoloaded by compinit
|
||||||
# prompt_*_setup functions are autoloaded by promptinit
|
# prompt_*_setup functions are autoloaded by promptinit
|
||||||
zfunctions+=(${^zfpaths}/^(*.*|_*|prompt_*_setup)(N-.:t))
|
zfunctions+=(${^zfpaths}/^(*~|*.zwc(|.old)|_*|prompt_*_setup)(N-.:t))
|
||||||
fi
|
fi
|
||||||
if (( ! ${#zscripts} )); then
|
if (( ! ${#zscripts} )); then
|
||||||
zscripts+=(${zdir}/(init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh))(NOL[1]))
|
zscripts+=(${zdir}/(init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh))(NOL[1]))
|
||||||
|
|
|
@ -216,7 +216,7 @@ Startup options:
|
||||||
if (( ! ${#zfunctions} )); then
|
if (( ! ${#zfunctions} )); then
|
||||||
# _* functions are autoloaded by compinit
|
# _* functions are autoloaded by compinit
|
||||||
# prompt_*_setup functions are autoloaded by promptinit
|
# prompt_*_setup functions are autoloaded by promptinit
|
||||||
zfunctions+=(${^zfpaths}/^(*.*|_*|prompt_*_setup)(N-.:t))
|
zfunctions+=(${^zfpaths}/^(*~|*.zwc(|.old)|_*|prompt_*_setup)(N-.:t))
|
||||||
fi
|
fi
|
||||||
if (( ! ${#zscripts} )); then
|
if (( ! ${#zscripts} )); then
|
||||||
zscripts+=(${zdir}/(init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh))(NOL[1]))
|
zscripts+=(${zdir}/(init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh))(NOL[1]))
|
||||||
|
|
Loading…
Reference in a new issue