Browse Source

[#171] Move Zsh file compilation into zlogin

master
Sorin Ionescu 13 years ago
parent
commit
39a60008e5
  1. 7
      init.zsh
  2. 7
      templates/zlogin

7
init.zsh

@ -37,10 +37,3 @@ zstyle -a ':omz:load' omodule 'omodules'
omodload "$omodules[@]" omodload "$omodules[@]"
unset 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
templates/zlogin

@ -5,6 +5,13 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # 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. # Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
for env_var in PATH MANPATH; do for env_var in PATH MANPATH; do

Loading…
Cancel
Save