[#171] Move Zsh file compilation into zlogin
This commit is contained in:
parent
1645fb88bd
commit
39a60008e5
2 changed files with 7 additions and 7 deletions
7
init.zsh
7
init.zsh
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue