258457ea4fe0b8fcb1f6d0242071edb82cab449a

Author
Christian Höltje <docwhat@gerf.org>
Committer
Christian Höltje <docwhat@gerf.org>
Date

Message

Moved ZSH_CUSTOM declaration before fpath is set

* also normalized style to match the guide.

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index 8f5e2472dc352961995a9df68be30248641fd69e..7ae41c33e63fa1a384881d69a06119192e374cbb 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -13,6 +13,12 @@ fpath=($ZSH/functions $ZSH/completions $fpath)
 6 # TIP: Add files you don't want in git to .gitignore
 7 for config_file ($ZSH/lib/*.zsh) source $config_file
 8 
 9+# Set ZSH_CUSTOM to the path where your custom config files
10+# and plugins exists, or else we will use the default custom/
11+if [[ -z "$ZSH_CUSTOM" ]]; then
12+    ZSH_CUSTOM="$ZSH/custom"
13+fi
14+
15 # Add all defined plugins to fpath. This must be done
16 # before running compinit.
17 plugin=${plugin:=()}
18@@ -28,12 +34,6 @@ done
19 autoload -U compinit
20 compinit -i
21 
22-# Set ZSH_CUSTOM to the path where your custom config files
23-# and plugins exists, or else we will use the default custom/
24-if [ "$ZSH_CUSTOM" = ""  ]
25-then
26-    ZSH_CUSTOM="$ZSH/custom"
27-fi
28 
29 # Load all of the plugins that were defined in ~/.zshrc
30 for plugin ($plugins); do