From e2eeef5f860b5a98eec35c0ac59ba70bd3d1493a Mon Sep 17 00:00:00 2001
From: Sorin Ionescu <sorin.ionescu@gmail.com>
Date: Thu, 28 Jul 2011 16:59:15 -0400
Subject: [PATCH] Prepend, not append, to fpath.

---
 oh-my-zsh.zsh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh
index 3980b64..12c3d48 100644
--- a/oh-my-zsh.zsh
+++ b/oh-my-zsh.zsh
@@ -6,9 +6,9 @@ if [[ "$TERM" == 'dumb' ]]; then
 fi
 
 # Add functions to fpath.
-fpath+=(${OMZ}/plugins/${^plugins} $OMZ/themes/*(/))
+fpath=($OMZ/themes/*(/) $OMZ/plugins/${^plugins} $OMZ/functions $fpath)
 
-# Load and run compinit.
+# Load and initialize the completion system.
 autoload -Uz compinit && compinit -i
 
 # Load all files in $OMZ/oh-my-zsh/lib/ that end in .zsh.