Skip to content

Instantly share code, notes, and snippets.

@kristopherjohnson
Created November 16, 2015 10:25
Show Gist options
  • Select an option

  • Save kristopherjohnson/e893ad33166c4fe77370 to your computer and use it in GitHub Desktop.

Select an option

Save kristopherjohnson/e893ad33166c4fe77370 to your computer and use it in GitHub Desktop.
Bash script to update Homebrew, npm packages, Ruby gems, and OS X
#!/bin/bash
set -e
echo 'Updating homebrew...'
brew update && brew upgrade && brew cleanup
echo 'Updating npm...'
npm update -g
echo 'Updating Ruby gems...'
gem update
echo 'Updating OS X...'
softwareupdate --install --recommended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment