Homebrew does something annoying and does its long update process almost every time you run it, which is irritating.
Here's a way to fix it while still keeping auto-updating on.
Add this to your .bashrc
or equivalent:
HOMEBREW_NO_AUTO_UPDATE=1
Then, to keep your Homebrew updated, add this one-liner to your crontab (crontab -e
):
@hourly if [ "`pmset -g batt | grep 'AC Power'`" != '' ]; then brew update > /dev/null 2> /dev/null; fi
This will run brew update
hourly, but only if you're connected to AC power.