Enable .bashrc on OSX Snow Leopard (and Lion)
Unfortunately 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.
November 23rd, 2011 at 00:48
Have you tried Oh-My-Zsh?
eliminates the need for .bashrc hacking big time =)
https://github.com/robbyrussell/oh-my-zsh
I use this fork of the project, and it made my life so much easier: http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
displaying the current git branch, showing if I have uncommitted changes, autocompletion of branchnames/commands, suggesting commands if I have made any typos =)
combined with iTerm2, it’s like terminal heaven, I’d even say it’s better than anything I had in Debian or Ubuntu, but this statement could cause a massive flamewar =)