Browse code

Moved the plugin fpath loop and compinit so they happen before custom scripts are loaded.

Pat Regan authored on 12/04/2011 at 21:50:15
Showing 1 changed files
... ...
@@ -7,9 +7,6 @@ fpath=($ZSH/functions $fpath)
7 7
 # TIP: Add files you don't want in git to .gitignore
8 8
 for config_file ($ZSH/lib/*.zsh) source $config_file
9 9
 
10
-# Load all of your custom configurations from custom/
11
-for config_file ($ZSH/custom/*.zsh) source $config_file
12
-
13 10
 # Add all defined plugins to fpath
14 11
 plugin=${plugin:=()}
15 12
 for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
... ...
@@ -18,6 +15,9 @@ for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
18 18
 autoload -U compinit
19 19
 compinit -i
20 20
 
21
+# Load all of your custom configurations from custom/
22
+for config_file ($ZSH/custom/*.zsh) source $config_file
23
+
21 24
 # Load all of the plugins that were defined in ~/.zshrc
22 25
 for plugin ($plugins)
23 26
 do