2013-03-16 14:01:35 -07:00
|
|
|
#!/bin/zsh
|
2013-03-16 10:31:51 -07:00
|
|
|
|
|
|
|
# Homebrew #####################
|
2013-03-16 14:01:35 -07:00
|
|
|
echo "\n* Updating homebrew"
|
2013-03-16 10:31:51 -07:00
|
|
|
brew update
|
|
|
|
brew upgrade
|
|
|
|
|
|
|
|
|
|
|
|
# RUBY #########################
|
|
|
|
|
|
|
|
# Make sure rvm is sourced properly
|
|
|
|
if [ -f ~/.rvm/scripts/rvm ]; then
|
2013-03-16 14:01:35 -07:00
|
|
|
[[ "$(type rvm)" =~ "function$" ]] || source ~/.rvm/scripts/rvm
|
2013-03-16 10:31:51 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Update all rubies and rubygems
|
|
|
|
for v in 1.9.3 1.8.7; do
|
2013-03-16 14:01:35 -07:00
|
|
|
echo "\n* Updating ruby $v"
|
2013-03-16 10:31:51 -07:00
|
|
|
rvm use $v
|
|
|
|
gem update --system
|
|
|
|
gem update
|
|
|
|
done
|
|
|
|
|
|
|
|
# Update system ruby
|
2013-03-16 14:01:35 -07:00
|
|
|
echo "\n* Updating system ruby"
|
2013-03-16 10:31:51 -07:00
|
|
|
rvm use system
|
|
|
|
sudo gem update --system
|
|
|
|
sudo gem update
|
|
|
|
|
|
|
|
|
|
|
|
# Vim ##########################
|
2013-03-16 14:01:35 -07:00
|
|
|
echo "\n* Updating vim..."
|
2013-03-16 10:31:51 -07:00
|
|
|
vim +BundleInstall! +BundleClean! +q +q
|
2013-03-16 14:01:35 -07:00
|
|
|
|
|
|
|
echo "\nDone!"
|