浏览代码

Revert "Move custon *.zsh file sourcing up so that they can load plugins and other things that come after."

This reverts commit a28dbc83937cbe624ec726199b4bbe7b65b2b2a0.
Marc Cornellà 8 年之前
父节点
当前提交
3fe3ce8bdc
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      oh-my-zsh.sh

+ 6 - 5
oh-my-zsh.sh

@@ -29,11 +29,6 @@ for config_file ($ZSH/lib/*.zsh); do
   source $config_file
 done
 
-# Load all of your custom configurations from custom/
-for config_file ($ZSH_CUSTOM/*.zsh(N)); do
-  source $config_file
-done
-unset config_file
 
 is_plugin() {
   local base_dir=$1
@@ -77,6 +72,12 @@ for plugin ($plugins); do
   fi
 done
 
+# Load all of your custom configurations from custom/
+for config_file ($ZSH_CUSTOM/*.zsh(N)); do
+  source $config_file
+done
+unset config_file
+
 # Load the theme
 if [ "$ZSH_THEME" = "random" ]; then
   themes=($ZSH/themes/*zsh-theme)