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
Diff
1diff --git a/lib/misc.zsh b/lib/misc.zsh
2index 8d6727251a73ae3456600195a71eeb29aebdef2f..a01627d9e7fa43ed0391a252a79709a83a36ba93 100644
3--- a/lib/misc.zsh
4+++ b/lib/misc.zsh
5@@ -7,11 +7,3 @@ bindkey "^[m" copy-prev-shell-word
6 7 ## jobs
8 setopt long_list_jobs
9-
10-# Check for updates on initial load...
11-if [ "$DISABLE_AUTO_UPDATE" = "true" ]
12-then
13- return
14-else
15- /bin/sh $ZSH/tools/check_for_upgrade.sh
16-fi
17diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
18index 6e73519b5d3df25e37c189dc9d1534c53c052cb5..4b5959625b5ac095b7505bf6126a35ab7737c2d4 100644
19--- a/oh-my-zsh.sh
20+++ b/oh-my-zsh.sh
21@@ -6,3 +6,11 @@ for config_file ($ZSH/lib/*.zsh) source $config_file
2223 # Load all of your custom configurations from custom/
24 for config_file ($ZSH/custom/*.zsh) source $config_file
25+
26+# Check for updates on initial load...
27+if [ "$DISABLE_AUTO_UPDATE" = "true" ]
28+then
29+ return
30+else
31+ /bin/sh $ZSH/tools/check_for_upgrade.sh
32+fi