A few handy Homebrew aliases 🍺
I'm a big fan of Homebrew and use it every day in one way or another.
It's dubbed as "the missing package manager for OS X", and it certainly is.
It's far easier to run
$ brew install FORMULA
than to go and install/compile the software from source. It also keeps all your packages nicely organised and makes it easy to update them and uninstall them.
If you don't have it installed already, paste the following into your terminal:
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
You will ofcourse need Ruby installed on your system.
I thought I'd share some of the aliases that I use in my .bash_profile to make using Homebrew just a little easier.
Go ahead and open up your .bash_profile in your text editor, or alternatively just
$ nano ~/.bash_profile
And paste in the follwing at the bottom of the file:
Some aliases for Homebrew
alias bup='brew update && brew upgrade' alias bout='brew outdated' alias bin='brew install' alias brm='brew uninstall' alias bls='brew list' alias bsr='brew search' alias binf='brew info' alias bdr='brew doctor'
The two most common commands I use are $ bup (every morning after booting up to make sure everything's up to date) and $ bin FORMULA.
Hope you find these aliases useful, hit me up in the comments if you have questions/issues.
I found this Gist that extends my bup command quite nicely:
alias bup='brew update && brew upgrade && brew cleanup && brew prune && brew doctor'
I removed the
--force flag from the original Gist.