Also zrecompile functions starting with _
This was causing issues with https://github.com/jocelynmallon/zshmarks, that has a `functions/_jump_showmarks_deletemarks` file. Fixes #231
This commit is contained in:
parent
5387adb78e
commit
07d32caaae
2 changed files with 2 additions and 2 deletions
2
init.zsh
2
init.zsh
|
@ -22,7 +22,7 @@ fi
|
||||||
# autoload searches fpath for function locations; add enabled module function paths
|
# autoload searches fpath for function locations; add enabled module function paths
|
||||||
fpath=(${ZIM_HOME}/functions.zwc ${ZIM_HOME}/modules/prompt/functions ${fpath})
|
fpath=(${ZIM_HOME}/functions.zwc ${ZIM_HOME}/modules/prompt/functions ${fpath})
|
||||||
|
|
||||||
for mod_function in ${ZIM_HOME}/modules/${^zmodules}/functions/^([_.]*|prompt_*_setup|README*)(-.N:t); do
|
for mod_function in ${ZIM_HOME}/modules/${^zmodules}/functions/^(prompt_*_setup|README*|*.zwc|*.zwc.old)(-.N:t); do
|
||||||
autoload -Uz ${mod_function}
|
autoload -Uz ${mod_function}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
zrecompile -pq ${ZDOTDIR:-${HOME}}/.zshrc
|
zrecompile -pq ${ZDOTDIR:-${HOME}}/.zshrc
|
||||||
|
|
||||||
# zcompile enabled module autoloaded functions
|
# zcompile enabled module autoloaded functions
|
||||||
zrecompile -pq ${ZIM_HOME}/functions ${ZIM_HOME}/modules/${^zmodules}/functions/^([_.]*|prompt_*_setup|README*|*.zwc|*.zwc.old)(-.N)
|
zrecompile -pq ${ZIM_HOME}/functions ${ZIM_HOME}/modules/${^zmodules}/functions/^(prompt_*_setup|README*|*.zwc|*.zwc.old)(-.N)
|
||||||
|
|
||||||
# zcompile enabled module init scripts
|
# zcompile enabled module init scripts
|
||||||
for zmodule (${zmodules}); do
|
for zmodule (${zmodules}); do
|
||||||
|
|
Loading…
Reference in a new issue