Skip to content

Instantly share code, notes, and snippets.

@pietergreyling
Last active January 27, 2016 19:53
Show Gist options
  • Save pietergreyling/43b00966f0a775a84ac8 to your computer and use it in GitHub Desktop.
Save pietergreyling/43b00966f0a775a84ac8 to your computer and use it in GitHub Desktop.
Mac OS X Homebrew shell script that I use in my war on entropy.
#!/bin/bash
#--
#-- file: mybrew.sh
#-- auth: [@pietergreyling:20151028]
#-- desc: Mac OS X Homebrew shell script that I use in my war on entropy.
#-- exec: To clean up and verify your Homebrew setup, in a terminal run: $ ./mybrew.sh
clear
echo "-- Updating your Homebrew installation at: " && brew --prefix
sudo chown -R $(whoami):admin /usr/local
brew update && brew upgrade
echo "-- \$HOMEBREW_INSTALL: $HOMEBREW_INSTALL"
brew prune
brew doctor
@pietergreyling
Copy link
Author

To clean up and verify your Homebrew setup, in a terminal session run:
$ ./mybrew.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment