Enable .bashrc on OSX Snow Leopard (and Lion)
Wednesday, October 19th, 2011Unfortunately OSX doesn’t use .bashrc per default, but it is easy to enable it. To do it, open up the file /etc/profile with root privileges like this:
sudo nano /etc/profile
And add the following line:
[ -r $HOME/.bashrc ] && source $HOME/.bashrc
[ -r $HOME/.bashrc ] && source $HOME/.bashrc
Save, and now your .bashrc file should work like you expect.