[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:
parent
d0429dc0bb
commit
a4f6b757be
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
) &!
|
||||
|
|
Loading…
Reference in a new issue