... | ... |
@@ -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 | 28 |
for config_file ($ZSH/custom/*.zsh) source $config_file |
29 | 29 |
|
30 | 30 |
# Load the theme |
31 |
-# Check for updates on initial load... |
|
32 | 31 |
if [ "$ZSH_THEME" = "random" ] |
33 | 32 |
then |
34 | 33 |
themes=($ZSH/themes/*zsh-theme) |
... | ... |
@@ -41,11 +48,3 @@ else |
41 | 41 |
source "$ZSH/themes/$ZSH_THEME.zsh-theme" |
42 | 42 |
fi |
43 | 43 |
|
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 |
... | ... |
@@ -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 |