[#171] Move Zsh file compilation into zlogin

This commit is contained in:
Sorin Ionescu 2012-05-27 19:43:06 -04:00
parent 1645fb88bd
commit 39a60008e5
2 changed files with 7 additions and 7 deletions

View file

@ -37,10 +37,3 @@ zstyle -a ':omz:load' omodule 'omodules'
omodload "$omodules[@]"
unset omodules
# Compile the completion dump to increase startup speed.
dump_file="$HOME/.zcompdump"
if [[ "$dump_file" -nt "${dump_file}.zwc" || ! -s "${dump_file}.zwc" ]]; then
zcompile "$dump_file"
fi
unset dump_file

View file

@ -5,6 +5,13 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Compile the completion dump to increase startup speed.
dump_file="$HOME/.zcompdump"
if [[ "$dump_file" -nt "${dump_file}.zwc" || ! -s "${dump_file}.zwc" ]]; then
zcompile "$dump_file"
fi
unset dump_file
# Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then
for env_var in PATH MANPATH; do