Skip to content

Instantly share code, notes, and snippets.

@onyxmueller
Created August 30, 2018 03:39
Show Gist options
  • Save onyxmueller/11b60967992d6e1501810e02227c8276 to your computer and use it in GitHub Desktop.
Save onyxmueller/11b60967992d6e1501810e02227c8276 to your computer and use it in GitHub Desktop.
A shell script that cleans up and updates Homebrew.
#!/bin/sh
# setup path
PATH=/usr/local/bin:/usr/bin:/bin
# remove stale/old files and update Homebrew
brew cleanup | logger -s
brew cask cleanup | logger -s
brew update | logger -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment