Created
July 15, 2011 19:53
-
-
Save dtrietsch/1085418 to your computer and use it in GitHub Desktop.
Updates BREW outdated, RVM, GEMS, NPM, JANUS, and TextMate Bundles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo ---------------------------------------- | |
echo UPDATING BREW INSTALLS | |
echo ---------------------------------------- | |
brew update | |
OUTDATEDS=(`brew outdated`) | |
for outdated in "${OUTDATEDS[@]}" | |
do | |
echo installing $outdated | |
brew install $outdated | |
echo cleaning $outdated | |
brew cleanup $outdated | |
done | |
echo ---------------------------------------- | |
echo UPDATING RVM | |
echo ---------------------------------------- | |
rvm use system | |
rvm reload | |
gem update rvm | |
bash < <(curl -s -B https://rvm.beginrescueend.com/install/rvm) | |
rvm use 1.9.2 | |
rvm reload | |
echo ---------------------------------------- | |
echo UPDATING GEMS | |
echo ---------------------------------------- | |
gem update | |
echo ---------------------------------------- | |
echo UPDATING NPM | |
echo ---------------------------------------- | |
npm update | |
echo ---------------------------------------- | |
echo UPDATING JANUS | |
echo ---------------------------------------- | |
cd ~/.vim | |
git pull | |
rake | |
cd ~ | |
echo ---------------------------------------- | |
echo UPDATING TEXTMATE BUNDLES | |
echo ---------------------------------------- | |
cd ~/Library/Application\ Support/TextMate/Bundles | |
for file in *; do | |
echo updating "$file" | |
cd "$file" | |
git pull | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment