diff options
author | Robby Russell <robby@planetargon.com> | 2009-08-31 15:48:09 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2009-08-31 15:48:09 -0700 |
commit | 1ec8a8848e5fa8f733af92f2c09387719e57e0d5 (patch) | |
tree | 8ccb27042ff09fe57262efe9d50130420c8de908 | |
parent | 0ce2fd0940e97fc19e7b3a38c374674bd1edc383 (diff) | |
download | zsh-1ec8a8848e5fa8f733af92f2c09387719e57e0d5.tar.gz zsh-1ec8a8848e5fa8f733af92f2c09387719e57e0d5.tar.bz2 zsh-1ec8a8848e5fa8f733af92f2c09387719e57e0d5.zip |
Adding an upgrade_oh_my_zsh function to... well, upgrade Oh My Zsh
-rw-r--r-- | functions.zsh | 4 | ||||
-rw-r--r-- | tools/upgrade.sh | 5 |
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 |