From c7b8ce0f0b0e035db5b58bdf1283b008cefbba9f Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 1 May 2011 12:33:28 -0400 Subject: [PATCH] Compile zcompdump, if modified, to increase startup speed. --- oh-my-zsh.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index ddd1f04..a3ac5b7 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -54,3 +54,7 @@ else fi fi +# 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