Created
February 8, 2016 18:42
-
-
Save BretFisher/d6a0ca690d6e034954ea to your computer and use it in GitHub Desktop.
Mac Update/Cleanup Script
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
#!/bin/sh | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Update App Store apps | |
sudo softwareupdate -i -a | |
# Update Homebrew (Cask) & packages | |
brew update | |
brew outdated | |
read -p "ok to upgrade? [enter]" | |
brew upgrade | |
brew cleanup -s | |
# Update npm & packages | |
npm install npm -g | |
npm update -g | |
# Update Ruby & gems, non-sudo updates rbenv versions, sudo updates mac and sudo versions | |
gem update --system | |
gem update | |
gem cleanup | |
sudo gem update --system | |
sudo gem update | |
sudo gem cleanup | |
# take them back | |
cd $CUR_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment