1
0
Fork 0
mirror of synced 2024-11-12 19:18:57 -05:00
zimfw/templates/zlogin

45 lines
1.3 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 file
local zmodule
setopt LOCAL_OPTIONS EXTENDED_GLOB
autoload -U zrecompile
# zcompile the completion cache; siginificant speedup
zrecompile -pq ${ZDOTDIR:-${HOME}}/${zcompdump_file:-.zcompdump}
2015-12-15 00:12:17 -05:00
2016-01-04 18:11:30 -05:00
# zcompile .zshrc
zrecompile -pq ${ZDOTDIR:-${HOME}}/.zshrc
# zcompile enabled module autoloaded functions
zrecompile -pq ${ZIM_HOME}/functions ${ZIM_HOME}/modules/${^zmodules}/functions/^([_.]*|prompt_*_setup|README*|*.zwc)(-.N)
# zcompile enabled module init scripts
for zmodule (${zmodules}); do
zrecompile -pq ${ZIM_HOME}/modules/${zmodule}/init.zsh
2016-01-04 18:11:30 -05:00
done
# zcompile all prompt setup scripts
for file in ${ZIM_HOME}/modules/prompt/functions/prompt_*_setup; do
zrecompile -pq ${file}
done
2016-01-04 18:11:30 -05:00
# syntax-highlighting
for file in ${ZIM_HOME}/modules/syntax-highlighting/external/highlighters/**^test-data/*.zsh; do
zrecompile -pq ${file}
2016-01-04 18:11:30 -05:00
done
zrecompile -pq ${ZIM_HOME}/modules/syntax-highlighting/external/zsh-syntax-highlighting.zsh
2016-01-04 18:11:30 -05:00
# zsh-histery-substring-search
zrecompile -pq ${ZIM_HOME}/modules/history-substring-search/external/zsh-history-substring-search.zsh
2015-12-15 00:12:17 -05:00
) &!