From 58113465255c2982914fd75101ab96749de3aafb Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 1 May 2011 12:33:28 -0400 Subject: [PATCH] [#316] Compile zcompdump, if modified, to increase startup speed. --- oh-my-zsh.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index b939090e..29b1d3bc 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -44,6 +44,11 @@ fi # Load all of your custom configurations from custom/ for config_file ($ZSH/custom/*.zsh) source $config_file +# Compile zcompdump, if modified, to increase startup speed. +if [ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" -o ! -e "$HOME/.zcompdump.zwc" ]; then + zcompile "$HOME/.zcompdump" +fi + # Check for updates on initial load... if [ "$DISABLE_AUTO_UPDATE" = "true" ] then