1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

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:
Eric Nielsen 2020-01-02 12:11:51 -05:00
parent ae3e71cb84
commit 5587ea14da
No known key found for this signature in database
GPG key ID: 47D1DBFA0765A1FB
2 changed files with 2 additions and 2 deletions

View file

@ -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]))

View file

@ -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]))