helm/bin/update

36 lines
655 B
Plaintext
Raw Normal View History

#!/bin/zsh
2013-03-16 10:31:51 -07:00
# Homebrew #####################
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
[[ "$(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
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
echo "\n* Updating system ruby"
2013-03-16 10:31:51 -07:00
rvm use system
sudo gem update --system
sudo gem update
# Vim ##########################
echo "\n* Updating vim..."
2013-03-16 10:31:51 -07:00
vim +BundleInstall! +BundleClean! +q +q
echo "\nDone!"