mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Adding an upgrade_oh_my_zsh function to... well, upgrade Oh My Zsh
This commit is contained in:
parent
0ce2fd0940
commit
1ec8a8848e
2 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
|
5
tools/upgrade.sh
Normal file
5
tools/upgrade.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
current_path=`pwd`
|
||||
echo "Upgrading Oh My Zsh"
|
||||
( cd $ZSH && git pull origin master )
|
||||
echo "Done."
|
||||
cd $current_path
|
Loading…
Reference in a new issue