diff options
author | Jon Evans <jon@springyweb.com> | 2009-10-01 08:55:07 +0100 |
---|---|---|
committer | Jon Evans <jon@springyweb.com> | 2009-10-01 08:55:07 +0100 |
commit | eddab5034cb19caa99a1a0e381de4dcf63ef0fe0 (patch) | |
tree | 9bfd52e5dc1d0c6db9d14b2a75cb5a568ab6958e /oh-my-zsh.sh | |
parent | 00a190bc017283ef8ab8c725c5f9fe93f030e31e (diff) | |
download | zsh-eddab5034cb19caa99a1a0e381de4dcf63ef0fe0.tar.gz zsh-eddab5034cb19caa99a1a0e381de4dcf63ef0fe0.tar.bz2 zsh-eddab5034cb19caa99a1a0e381de4dcf63ef0fe0.zip |
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
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 6e73519b5..4b5959625 100644 --- a/oh-my-zsh.sh +++ b/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 |