Skip to content

Instantly share code, notes, and snippets.

@JonathanWolfe
Created August 11, 2015 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanWolfe/706baee8d2bd2cd8762b to your computer and use it in GitHub Desktop.
Save JonathanWolfe/706baee8d2bd2cd8762b to your computer and use it in GitHub Desktop.
Update your Mac's various systems and packages (Oh-My-ZSH, Homebrew, Ruby Gems, PIP, NPM)
echo ''
echo ''
echo '=== update Oh-My-ZSH ==='
echo ''
echo ''
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
echo ''
echo ''
echo '=== update pip packages ==='
echo ''
echo ''
sudo -H sh -c 'pip-review --auto'
echo ''
echo ''
echo '=== update brew packages ==='
echo ''
echo ''
brew update --all
echo ''
echo ''
echo '=== will upgrade these packages ==='
echo ''
echo ''
brew outdated
echo ''
echo ''
echo '=== brew upgrading ==='
echo ''
echo ''
brew upgrade --all
echo ''
echo ''
echo '=== brew clean up ==='
echo ''
echo ''
brew prune
brew cleanup
echo ''
echo ''
echo '=== finish update brew packages ==='
echo ''
echo ''
echo ''
echo ''
echo '=== update ruby gems ==='
echo ''
echo ''
sudo sh -c 'gem update'
sudo sh -c 'gem update --system'
echo ''
echo ''
echo '=== gem clean up ==='
echo ''
echo ''
sudo sh -c 'gem cleanup'
echo ''
echo ''
echo '=== finish ruby gems ==='
echo ''
echo ''
echo ''
echo ''
echo '=== update npm packages ==='
echo ''
echo ''
sudo sh -c 'npm update -g'
echo ''
echo ''
echo '=== finish update npm packages ==='
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment