diff --git a/bin/update b/bin/update index 6d46993a..6eaf22bd 100755 --- a/bin/update +++ b/bin/update @@ -1,6 +1,7 @@ -#!/bin/bash +#!/bin/zsh # Homebrew ##################### +echo "\n* Updating homebrew" brew update brew upgrade @@ -9,22 +10,26 @@ brew upgrade # Make sure rvm is sourced properly if [ -f ~/.rvm/scripts/rvm ]; then - [ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm + [[ "$(type rvm)" =~ "function$" ]] || source ~/.rvm/scripts/rvm fi # Update all rubies and rubygems for v in 1.9.3 1.8.7; do + echo "\n* Updating ruby $v" rvm use $v gem update --system gem update done # Update system ruby +echo "\n* Updating system ruby" rvm use system sudo gem update --system sudo gem update # Vim ########################## -echo "[NOTICE] Updating vim..." +echo "\n* Updating vim..." vim +BundleInstall! +BundleClean! +q +q + +echo "\nDone!"