[upgrade] before init (no reload needed unless oh-my-zsh.sh has been modified)

This commit is contained in:
vguerci 2011-06-04 11:02:25 +02:00
commit 7c9474508c
2 changed files with 8 additions and 10 deletions

View file

@ -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