summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.zsh4
-rw-r--r--tools/upgrade.sh5
2 files changed, 9 insertions, 0 deletions
diff --git a/functions.zsh b/functions.zsh
index d0c24e9e9..e3891f6fc 100644
--- a/functions.zsh
+++ b/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"
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
new file mode 100644
index 000000000..fa07daaea
--- /dev/null
+++ b/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 \ No newline at end of file