Created
December 24, 2013 05:23
-
-
Save moimikey/8109104 to your computer and use it in GitHub Desktop.
my ever growing update bash function
This file contains hidden or 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
function update() { | |
echo — Updating Homebrew... | |
brew update | |
echo — Upgrading Homebrew packages... | |
brew upgrade | |
echo — Cleaning up... | |
brew cleanup | |
echo - Pruning... | |
brew prune | |
echo — Updating MacPorts... | |
sudo port selfupdate | |
echo — Upgrading ports... | |
sudo port -p upgrade outdated | |
echo - Cleaning up ports... | |
sudo port clean --all installed | |
echo - Removing inactive ports... | |
sudo port -f uninstall inactive | |
echo — Updating NPM packages... | |
npm -g up | |
echo - Updating RVM... | |
rvm get stable | |
echo - Cleanup up RVM... | |
rvm cleanup all | |
echo - Updating Ruby Gems... | |
rvm rubygems latest | |
echo — Done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment