If you spend a lot of time maintaining your servers, you probably have a few aliases and other bash-shell tweaks that you’d like to be part of your terminal experience on your Mac. For years I have been frustrated that my alias for l=’ls -la’ doesn’t seem to get executed even though it is in my .bashrc file!
SOLUTION: It turns out that bash on your Mac terminal doesn’t automatically read .bashrc so you have to force it. To do this, add the following to your .bash_profile file:
[[ -s ~/.bashrc ]] && source ~/.bashrc
And Voila! Every time you enter terminal now your .bashrc will be executed.
You’re welcome. 🙂