cleanup zlogin
This commit is contained in:
parent
251437fd03
commit
bf10ce72c5
@ -15,44 +15,35 @@
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# First, we will zcompile the completion cache, if it exists. Siginificant speedup.
|
zim_mods=${ZDOTDIR:-${HOME}}/.zim/modules
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zcompdump
|
|
||||||
|
|
||||||
# Next, zcompile .zshrc if needed
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zshrc
|
|
||||||
|
|
||||||
# Now, zcompile some light module init scripts
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zim/modules/git/init.zsh
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zim/modules/utility/init.zsh
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zim/modules/pacman/init.zsh
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zim/modules/spectrum/init.zsh
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zim/modules/completion/init.zsh
|
|
||||||
zcompare ${ZDOTDIR:-${HOME}}/.zim/modules/custom/init.zsh
|
|
||||||
|
|
||||||
# Then, we should zcompile the 'heavy' modules where possible.
|
|
||||||
# This includes syntax-highlighting and completion.
|
|
||||||
# Other modules may be added to this list at a later date.
|
|
||||||
zim=${ZDOTDIR:-${HOME}}/.zim
|
|
||||||
setopt EXTENDED_GLOB
|
setopt EXTENDED_GLOB
|
||||||
|
|
||||||
#
|
# zcompile the completion cache; siginificant speedup.
|
||||||
# syntax-highlighting zcompile
|
zcompare ${ZDOTDIR:-${HOME}}/.zcompdump
|
||||||
#
|
|
||||||
if [[ -d ${zim}/modules/syntax-highlighting/external/highlighters ]]; then
|
# zcompile .zshrc
|
||||||
# compile the highlighters
|
zcompare ${ZDOTDIR:-${HOME}}/.zshrc
|
||||||
for file in ${zim}/modules/syntax-highlighting/external/highlighters/**/*.zsh; do
|
|
||||||
|
# zcompile some light module init scripts
|
||||||
|
zcompare ${zim_mods}/git/init.zsh
|
||||||
|
zcompare ${zim_mods}/utility/init.zsh
|
||||||
|
zcompare ${zim_mods}/pacman/init.zsh
|
||||||
|
zcompare ${zim_mods}/spectrum/init.zsh
|
||||||
|
zcompare ${zim_mods}/completion/init.zsh
|
||||||
|
|
||||||
|
# zcompile all .zsh files in the custom module
|
||||||
|
for file in ${zim_mods}/custom/**/*.zsh; do
|
||||||
zcompare ${file}
|
zcompare ${file}
|
||||||
done
|
done
|
||||||
# compile the main file
|
|
||||||
zcompare ${zim}/modules/syntax-highlighting/external/zsh-syntax-highlighting.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
# syntax-highlighting
|
||||||
# zsh-histery-substring-search zcompile
|
for file in ${zim_mods}/syntax-highlighting/external/highlighters/**/*.zsh; do
|
||||||
#
|
zcompare ${file}
|
||||||
if [[ -s ${zim}/modules/history-substring-search/external/zsh-history-substring-search.zsh ]]; then
|
done
|
||||||
zcompare ${zim}/modules/history-substring-search/external/zsh-history-substring-search.zsh
|
zcompare ${zim_mods}/syntax-highlighting/external/zsh-syntax-highlighting.zsh
|
||||||
fi
|
|
||||||
|
# zsh-histery-substring-search
|
||||||
|
zcompare ${zim_mods}/history-substring-search/external/zsh-history-substring-search.zsh
|
||||||
|
|
||||||
|
|
||||||
) &!
|
) &!
|
||||||
|
Reference in New Issue
Block a user