Commit 00a190bc authored by Robby Russell's avatar Robby Russell
Browse files

Oh My Zsh gets a weekly auto-updater... the future is now!

parent 700a3f0b
...@@ -7,3 +7,11 @@ bindkey "^[m" copy-prev-shell-word ...@@ -7,3 +7,11 @@ bindkey "^[m" copy-prev-shell-word
## jobs ## jobs
setopt long_list_jobs setopt long_list_jobs
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" = "true" ]
then
return
else
/bin/sh $ZSH/tools/check_for_upgrade.sh
fi
...@@ -5,6 +5,9 @@ export ZSH=$HOME/.oh-my-zsh ...@@ -5,6 +5,9 @@ export ZSH=$HOME/.oh-my-zsh
# Look in ~/.oh-my-zsh/themes/ # Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="robbyrussell" export ZSH_THEME="robbyrussell"
# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="false"
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Customize to your needs... # Customize to your needs...
current_path=`pwd` current_path=`pwd`
echo "Upgrading Oh My Zsh" echo "Upgrading Oh My Zsh"
( cd $ZSH && git pull origin master ) ( cd $ZSH && git pull origin master )
echo "Done." echo "Hooray! Oh My Zsh has been updated and/or is at the current version. \nAny new updates will be reflected when you start your next terminal session."
cd $current_path cd $current_path
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment