Updated ZCompiling

This commit is contained in:
AtomicCoding 2018-04-05 10:58:59 -07:00
parent 2f0243e533
commit 730b69052a
No known key found for this signature in database
GPG Key ID: D9C2E2ED3C4516FA
1 changed files with 6 additions and 15 deletions

View File

@ -23,32 +23,23 @@
zrecompile -pq ${dir}.zwc ${dir}/^([_.]*|prompt_*_setup|README*|*.zwc|*.zwc.old)(-.N)
done
# zcompile enabled module init scripts
# zcompile enabled module init scripts and subdirs
setopt nullglob
for zmodule (${zmodules}); do
zmodule_dir=${ZIM_HOME}/modules/${zmodule}
if [[ -d ${zmodule_dir} ]]; then
for file (${zmodule_dir}/init.zsh \
${zmodule_dir}/{,zsh-}${zmodule}.{zsh,plugin.zsh,zsh-theme,sh}); do
for file (${zmodule_dir}/**/*.{zsh,sh} \
${zmodule_dir}/*.{zsh,sh}); do
if [[ -f ${file} ]]; then
zrecompile -pq ${file}
break
fi
done
fi
done
unsetopt nullglob
# zcompile all prompt setup scripts
for file in ${ZIM_HOME}/modules/prompt/functions/prompt_*_setup; do
zrecompile -pq ${file}
done
# syntax-highlighting
for file in ${ZIM_HOME}/modules/syntax-highlighting/external/highlighters/**^test-data/*.zsh; do
zrecompile -pq ${file}
done
zrecompile -pq ${ZIM_HOME}/modules/syntax-highlighting/external/zsh-syntax-highlighting.zsh
# zsh-histery-substring-search
zrecompile -pq ${ZIM_HOME}/modules/history-substring-search/external/zsh-history-substring-search.zsh
) &!