Skip to content
Browse files

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

  • Loading branch information...
1 parent 0ce2fd0 commit 1ec8a8848e5fa8f733af92f2c09387719e57e0d5 @robbyrussell committed Aug 31, 2009
Showing with 9 additions and 0 deletions.
  1. +4 −0 functions.zsh
  2. +5 −0 tools/upgrade.sh
View
4 functions.zsh
@@ -32,6 +32,10 @@ function uninstall_oh_my_zsh() {
/bin/sh $ZSH/tools/uninstall.sh
}
+function upgrade_oh_my_zsh() {
+ /bin/sh $ZSH/tools/upgrade.sh
+}
+
function tab() {
osascript 2>/dev/null <<EOF
tell application "System Events"
View
5 tools/upgrade.sh
@@ -0,0 +1,5 @@
+current_path=`pwd`
+echo "Upgrading Oh My Zsh"
+( cd $ZSH && git pull origin master )
+echo "Done."
+cd $current_path

0 comments on commit 1ec8a88

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