1
0
Fork 0
mirror of synced 2024-11-17 21:45:35 -05:00
This commit is contained in:
Atomic Coding 2018-04-09 19:26:03 +00:00 committed by GitHub
commit ec5288011a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 16 deletions

View file

@ -36,7 +36,7 @@ fi
if [[ ! -d ${zmodule_dir} ]]; then
print "No such module \"${zmodule}\"." >&2
else
for zmodule_file (${zmodule_dir}/init.zsh \
for zmodule_file (${zmodule_dir}/init.{zsh,sh} \
${zmodule_dir}/{,zsh-}${zmodule}.{zsh,plugin.zsh,zsh-theme,sh}); do
if [[ -f ${zmodule_file} ]]; then
source ${zmodule_file}

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,zsh-theme} \
${zmodule_dir}/*.{zsh,sh,zsh-theme}); 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
) &!