Browse code

Adding an upgrade_oh_my_zsh function to... well, upgrade Oh My Zsh

Robby Russell authored on 31/08/2009 at 22:48:09
Showing 2 changed files
... ...
@@ -32,6 +32,10 @@ function uninstall_oh_my_zsh() {
32 32
   /bin/sh $ZSH/tools/uninstall.sh
33 33
 }
34 34
 
35
+function upgrade_oh_my_zsh() {
36
+  /bin/sh $ZSH/tools/upgrade.sh
37
+}
38
+
35 39
 function tab() {
36 40
   osascript 2>/dev/null <<EOF
37 41
     tell application "System Events"
38 42
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+current_path=`pwd`
1
+echo "Upgrading Oh My Zsh"
2
+( cd $ZSH && git pull origin master )
3
+echo "Done."
4
+cd $current_path
0 5
\ No newline at end of file