Amending your PATH (e.g. for homebrew)
If you for example want to use Homebrew’s version of postgresql instead of the one that ships with OS X Lion, you have to change the sequence of the directories of your PATH.
The hint Homebrew provides is:
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths:
…
To do so, just create a .bash_profile file in your home directory and add the following line:
PATH=”/usr/local/bin:$PATH”
The next time you open your shell, you’re ready to go.








