Skip to content

Instantly share code, notes, and snippets.

@moimikey
Created December 24, 2013 05:23
Show Gist options
  • Save moimikey/8109104 to your computer and use it in GitHub Desktop.
Save moimikey/8109104 to your computer and use it in GitHub Desktop.
my ever growing update bash function
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