From 5e2ad9a8ed883d75afc18b9a8b17ff563e2bfee5 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 1 Oct 2009 08:55:07 +0100 Subject: [PATCH] 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 --- lib/misc.zsh | 8 -------- oh-my-zsh.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/misc.zsh b/lib/misc.zsh index 8d67272..a01627d 100644 --- a/lib/misc.zsh +++ b/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 diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 6e73519..4b59596 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