summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorPat Regan <thehead@patshead.com>2011-04-12 17:50:15 -0400
committerPat Regan <thehead@patshead.com>2011-04-12 17:50:15 -0400
commit757ebfcbd20b0893d8c9529eed2dfd428868f431 (patch)
treec66da0dc42a39ca368b665426b5b7c6df8e9d616 /oh-my-zsh.sh
parent6bf906a2622ddea1e9aae5d23c544d37fc4b6a76 (diff)
downloadzsh-757ebfcbd20b0893d8c9529eed2dfd428868f431.tar.gz
zsh-757ebfcbd20b0893d8c9529eed2dfd428868f431.tar.bz2
zsh-757ebfcbd20b0893d8c9529eed2dfd428868f431.zip
Moved the plugin fpath loop and compinit so they happen before custom scripts are loaded.
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 0c85de714..ad4b268ae 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -7,9 +7,6 @@ fpath=($ZSH/functions $fpath)
# TIP: Add files you don't want in git to .gitignore
for config_file ($ZSH/lib/*.zsh) source $config_file
-# Load all of your custom configurations from custom/
-for config_file ($ZSH/custom/*.zsh) source $config_file
-
# Add all defined plugins to fpath
plugin=${plugin:=()}
for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
@@ -18,6 +15,9 @@ for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
autoload -U compinit
compinit -i
+# Load all of your custom configurations from custom/
+for config_file ($ZSH/custom/*.zsh) source $config_file
+
# Load all of the plugins that were defined in ~/.zshrc
for plugin ($plugins)
do