From 50d5bd72d5602fcefe5be53bc3849e7fe6f23a75 Mon Sep 17 00:00:00 2001 From: Pat Regan Date: Fri, 29 Apr 2011 22:45:53 -0400 Subject: [PATCH] Compile ~/.zcompdump if it has been updated --- oh-my-zsh.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 3ea88e924..c7d26c64f 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -39,6 +39,10 @@ else source "$ZSH/themes/$ZSH_THEME.zsh-theme" fi +# Compile zcompdump if necessary +if [ ~/.zcompdump -nt ~/.zcompdump.zwc ]; then + zcompile ~/.zcompdump +fi # Check for updates on initial load... if [ "$DISABLE_AUTO_UPDATE" = "true" ]