summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-06-04 03:12:23 -0700
committerRobby Russell <robby@planetargon.com>2011-06-04 03:12:23 -0700
commite8bd400bffc51c83e0ef6671ecb5f364dc2f5065 (patch)
tree9c313b79bd5ea366b0c54082e7849a27582709b1 /oh-my-zsh.sh
parent0c41b1cdc3ff7b00ffb2310b91becb91b31704f7 (diff)
parent7c9474508cade14102a2fe1c63ad845fda521bec (diff)
downloadzsh-e8bd400bffc51c83e0ef6671ecb5f364dc2f5065.tar.gz
zsh-e8bd400bffc51c83e0ef6671ecb5f364dc2f5065.tar.bz2
zsh-e8bd400bffc51c83e0ef6671ecb5f364dc2f5065.zip
Merge pull request #395 from vguerci/upgrade-before-init
Upgrade before init
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index dbff1ced9..2157c38a0 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -1,3 +1,11 @@
+# Check for updates on initial load...
+if [ "$DISABLE_AUTO_UPDATE" = "true" ]
+then
+ return
+else
+ /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
+fi
+
# Initializes Oh My Zsh
# add a function path
@@ -28,7 +36,6 @@ done
for config_file ($ZSH/custom/*.zsh) source $config_file
# Load the theme
-# Check for updates on initial load...
if [ "$ZSH_THEME" = "random" ]
then
themes=($ZSH/themes/*zsh-theme)
@@ -41,11 +48,3 @@ else
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
fi
-
-# Check for updates on initial load...
-if [ "$DISABLE_AUTO_UPDATE" = "true" ]
-then
- return
-else
- /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
-fi