mhulse / dotfizzles

Fo shizzle … Dotfizzles in the hizzay dirz!
15 stars 4 forks source link

Remove cask upgrade from freshbrew #171

Closed mhulse closed 5 years ago

mhulse commented 7 years ago

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).

mhulse commented 7 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
}