1
0
Fork 0
mirror of synced 2024-06-01 14:51:11 -04:00
zimfw/src/stage2/50_zimfw_compile.zsh.erb
Eric Nielsen 05b8e0cdf2
Add --root option to zmodule
which makes it straighforward to use repositories that contain multiple
modules, like sorin-ionescu/prezto or ohmyzsh/ohmyzsh.
2022-09-26 20:33:49 -05:00

13 lines
408 B
Plaintext

_zimfw_compile() {
# Compile Zim scripts
local zroot_dir zfile
for zroot_dir in ${_zroot_dirs:|_zdisabled_root_dirs}; do
for zfile in ${zroot_dir}/(^*test*/)#*.zsh(|-theme)(N-.); do
if [[ ! ${zfile}.zwc -nt ${zfile} ]]; then
zcompile -UR ${zfile} && _zimfw_print -PR "<%= okay %>%B${zfile}.zwc:%b Compiled"
fi
done
done
_zimfw_print -P '<%= done %>Done with compile.'
}