Closed mhulse closed 5 years ago
Make it optional:
# Freshen up your HomeBrew!
# $ frewshbrew [cask]
function freshbrew() {
brew doctor
brew update
brew upgrade
if [[ "$1" = "cask" ]]; then
brew cask outdated | xargs brew cask reinstall
fi
brew cleanup
brew prune
brew doctor
}
It's good to have as an alias, but not in freshbrew, as that's not always a good time to do stuff (for example, virtualbox fails if it's running; not always going to remember that this is the case).