Install and configure Homebrew on OS X

Hello friends. Here is an overview of how to set up Homebrew on Mac OS X. Homebrew is one of the best things ever. It allows you to easily install many software packages with simple terminal commands.

Homebrew already has a useful installation guide. It will get you up and running, but it’s lacking some important details.

By default, Homebrew uses the directory /usr/local/Cellar to install your packages, and it creates symlinks to the executable files in /usr/local/bin. However, in order to run Homebrew-installed packages with ease, you’ll need to add the latter directory to your $PATH variable. On OS X, this variable is located in the file at /Users/yourname/.bash_profile. (If the file does not exist, create it.) Add the following line to the beginning of the file:

export PATH=/usr/local/bin:$PATH

Now the terminal will look in your Homebrew directory when searching for executables to run, and your life will change for the better. Happy brewing!