Skip to content

Commit

Permalink
[sorin-ionescu#171] Move Zsh file compilation into zlogin
Browse files Browse the repository at this point in the history
  • Loading branch information
RIT80 committed May 31, 2012
1 parent c8d7f47 commit b2aa468
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 7 additions & 0 deletions templates/zlogin
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# Sorin Ionescu <[email protected]>
#

# 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
Expand Down

0 comments on commit b2aa468

Please sign in to comment.