Skip to content
This repository
Browse code

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

…modified)
  • Loading branch information...
commit 7c9474508cade14102a2fe1c63ad845fda521bec 1 parent 0c41b1c
Vincent Guerci authored June 04, 2011
17  oh-my-zsh.sh
... ...
@@ -1,3 +1,11 @@
  1
+# Check for updates on initial load...
  2
+if [ "$DISABLE_AUTO_UPDATE" = "true" ]
  3
+then
  4
+  return
  5
+else
  6
+  /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
  7
+fi
  8
+
1 9
 # Initializes Oh My Zsh
2 10
 
3 11
 # add a function path
@@ -28,7 +36,6 @@ done
28 36
 for config_file ($ZSH/custom/*.zsh) source $config_file
29 37
 
30 38
 # Load the theme
31  
-# Check for updates on initial load...
32 39
 if [ "$ZSH_THEME" = "random" ]
33 40
 then
34 41
   themes=($ZSH/themes/*zsh-theme)
@@ -41,11 +48,3 @@ else
41 48
   source "$ZSH/themes/$ZSH_THEME.zsh-theme"
42 49
 fi
43 50
 
44  
-
45  
-# Check for updates on initial load...
46  
-if [ "$DISABLE_AUTO_UPDATE" = "true" ]
47  
-then
48  
-  return
49  
-else
50  
-  /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
51  
-fi
1  tools/upgrade.sh
@@ -8,6 +8,5 @@ echo "\033[0;32m"'/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / / '"\033[0m
8 8
 echo "\033[0;32m"'\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/  '"\033[0m"
9 9
 echo "\033[0;32m"'                        /____/                       '"\033[0m"
10 10
 echo "\033[0;34mHooray! Oh My Zsh has been updated and/or is at the current version.\033[0m"
11  
-echo "\033[0;34mAny new updates will be reflected when you start your next terminal session.\033[0m"
12 11
 echo "\033[0;34mTo keep up on the latest, be sure to follow Oh My Zsh on twitter: \033[1mhttp://twitter.com/ohmyzsh\033[0m"
13 12
 cd $current_path

0 notes on commit 7c94745

Please sign in to comment.
Something went wrong with that request. Please try again.