Skip to content

Instantly share code, notes, and snippets.

@smikheiev
Last active November 6, 2018 10:10
Show Gist options
  • Save smikheiev/d87910047abeeca32b90a9fdcfaae63a to your computer and use it in GitHub Desktop.
Save smikheiev/d87910047abeeca32b90a9fdcfaae63a to your computer and use it in GitHub Desktop.

Script to automatically update installed brew and brew cask packages

#!/bin/zsh
echo -e "\n> brew update"
brew update
echo -e "\n> brew upgrade"
brew upgrade
echo -e "\n> brew cask upgrade"
brew cask upgrade
echo -e "\n> brew cleanup -s"
brew cleanup -s
echo -e "\n> brew cask cleanup"
brew cleanup
echo -e "\n> brew doctor"
brew doctor
echo -e "\n> brew prune"
brew prune
echo -e "\n> brew doctor"
brew doctor
echo -e "\n> brew cask doctor"
brew cask doctor
echo -e "\n> brew missing"
brew missing
echo -e "\n Well done, mate ;)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment