I want to add a directory to search my search path. I know I have to modify the $PATH environment variable. However, I want the change to be permanent, so that it is always in effect, for every Terminal (bash) window I open.
There is an overload of confusing and possibly conflicting information on https://help.ubuntu.com/community/EnvironmentVariables
I am using Ubuntu 10.04. Suppose I want to add /usr/local/foo to my $PATH. Which file (.bashrc, .profile, .bash_login, etc...) should I modify and what should the new line(s) look like?