... | ... |
@@ -6,4 +6,12 @@ zle -N self-insert url-quote-magic |
6 | 6 |
bindkey "^[m" copy-prev-shell-word |
7 | 7 |
|
8 | 8 |
## jobs |
9 |
-setopt long_list_jobs |
|
10 | 9 |
\ No newline at end of file |
10 |
+setopt long_list_jobs |
|
11 |
+ |
|
12 |
+# Check for updates on initial load... |
|
13 |
+if [ "$DISABLE_AUTO_UPDATE" = "true" ] |
|
14 |
+then |
|
15 |
+ return |
|
16 |
+else |
|
17 |
+ /bin/sh $ZSH/tools/check_for_upgrade.sh |
|
18 |
+fi |
... | ... |
@@ -5,6 +5,9 @@ export ZSH=$HOME/.oh-my-zsh |
5 | 5 |
# Look in ~/.oh-my-zsh/themes/ |
6 | 6 |
export ZSH_THEME="robbyrussell" |
7 | 7 |
|
8 |
+# Comment this out to disable weekly auto-update checks |
|
9 |
+# export DISABLE_AUTO_UPDATE="false" |
|
10 |
+ |
|
8 | 11 |
source $ZSH/oh-my-zsh.sh |
9 | 12 |
|
10 | 13 |
# Customize to your needs... |
... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
current_path=`pwd` |
2 | 2 |
echo "Upgrading Oh My Zsh" |
3 | 3 |
( cd $ZSH && git pull origin master ) |
4 |
-echo "Done." |
|
4 |
+echo "Hooray! Oh My Zsh has been updated and/or is at the current version. \nAny new updates will be reflected when you start your next terminal session." |
|
5 | 5 |
cd $current_path |
6 | 6 |
\ No newline at end of file |