summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 2157c38a0..c4522491b 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -1,8 +1,6 @@
# Check for updates on initial load...
-if [ "$DISABLE_AUTO_UPDATE" = "true" ]
+if [ "$DISABLE_AUTO_UPDATE" != "true" ]
then
- return
-else
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
fi
@@ -45,6 +43,9 @@ then
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
else
- source "$ZSH/themes/$ZSH_THEME.zsh-theme"
+ if [ ! "$ZSH_THEME" = "" ]
+ then
+ source "$ZSH/themes/$ZSH_THEME.zsh-theme"
+ fi
fi