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

[template] Add zcompile of git-info to zlogin

and declare `zim_mods` as a local variable.
Also minor formatting changes.

Closes #215
This commit is contained in:
Eric Nielsen 2017-09-26 15:23:30 +02:00 committed by GitHub
parent d0429dc0bb
commit a4f6b757be

View file

@ -12,12 +12,12 @@
# does not exist, or the base file is newer, we need to compile.
# These jobs are asynchronous, and will not impact the interactive shell
zcompare() {
if [[ -s ${1} && ( ! -s ${1}.zwc || ${1} -nt ${1}.zwc) ]]; then
if [[ -s ${1} && ( ! -s ${1}.zwc || ${1} -nt ${1}.zwc ) ]]; then
zcompile ${1}
fi
}
zim_mods=${ZIM_HOME}/modules
local zim_mods=${ZIM_HOME}/modules
setopt EXTENDED_GLOB
# zcompile the completion cache; siginificant speedup.
@ -30,6 +30,7 @@
# zcompile some light module init scripts
zcompare ${zim_mods}/git/init.zsh
zcompare ${zim_mods}/git-info/init.zsh
zcompare ${zim_mods}/utility/init.zsh
zcompare ${zim_mods}/pacman/init.zsh
zcompare ${zim_mods}/spectrum/init.zsh
@ -54,6 +55,5 @@
# zsh-histery-substring-search
zcompare ${zim_mods}/history-substring-search/external/zsh-history-substring-search.zsh
) &!