1
0
Fork 0
mirror of synced 2024-09-19 12:02:53 -04:00
zimfw/templates/zlogin

46 lines
1.2 KiB
Text
Raw Normal View History

2015-12-15 00:12:17 -05:00
#
# startup file read in interactive login shells
2015-12-15 00:12:17 -05:00
#
# The following code helps us by optimizing the existing framework.
# This includes zcompile, zcompdump, etc.
2015-12-15 00:12:17 -05:00
#
(
local zim_mods=${ZIM_HOME}/modules
2016-01-04 18:11:30 -05:00
setopt EXTENDED_GLOB
autoload -U zrecompile
2016-01-04 18:11:30 -05:00
# zcompile the completion cache; siginificant speedup.
for file in ${ZDOTDIR:-${HOME}}/.zcomp^(*.zwc)(.); do
zrecompile -pq ${file}
done
2015-12-15 00:12:17 -05:00
2016-01-04 18:11:30 -05:00
# zcompile .zshrc
zrecompile -pq ${ZDOTDIR:-${HOME}}/.zshrc
# zcompile all module init scripts
for file in ${zim_mods}/*/init.zsh; do
zrecompile -pq ${file}
2016-01-04 18:11:30 -05:00
done
# zcompile all autoloaded functions
zrecompile -pq ${ZIM_HOME}/functions ${zim_mods}/*/functions/^([_.]*|prompt_*_setup|README*|*.zwc)(.)
# zcompile all prompt setup scripts
for file in ${zim_mods}/prompt/functions/prompt_*_setup; do
zrecompile -pq ${file}
done
2016-01-04 18:11:30 -05:00
# syntax-highlighting
for file in ${zim_mods}/syntax-highlighting/external/highlighters/**^test-data/*.zsh; do
zrecompile -pq ${file}
2016-01-04 18:11:30 -05:00
done
zrecompile -pq ${zim_mods}/syntax-highlighting/external/zsh-syntax-highlighting.zsh
2016-01-04 18:11:30 -05:00
# zsh-histery-substring-search
zrecompile -pq ${zim_mods}/history-substring-search/external/zsh-history-substring-search.zsh
2015-12-15 00:12:17 -05:00
) &!