浏览代码

run update check *after* running custom configuration scripts.
This means we are running it after $PATH has potentially been set up,
which means it's more likely that commands like "git" will be found

Jon Evans 15 年之前
父节点
当前提交
eddab5034c
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 0 8
      lib/misc.zsh
  2. 8 0
      oh-my-zsh.sh

+ 0 - 8
lib/misc.zsh

@@ -7,11 +7,3 @@ bindkey "^[m" copy-prev-shell-word
 
 ## jobs
 setopt long_list_jobs
-
-# Check for updates on initial load...
-if [ "$DISABLE_AUTO_UPDATE" = "true" ]
-then
-  return
-else
-  /bin/sh $ZSH/tools/check_for_upgrade.sh
-fi

+ 8 - 0
oh-my-zsh.sh

@@ -6,3 +6,11 @@ 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
+
+# Check for updates on initial load...
+if [ "$DISABLE_AUTO_UPDATE" = "true" ]
+then
+  return
+else
+  /bin/sh $ZSH/tools/check_for_upgrade.sh
+fi