I'm quite new to developing under OSX and assigned some aliases and other preferences in the ~/.profile initially, however it got quite big and messy after a while because I had a lot of Environment Variables to define too.
So I created a ~/.bashrc file (as you would on linux) and placed all my aliases and preferences there. However, since every instance of mac terminal is a login terminal, it doesn't read the .bashrc but just .profile…
So my solution was to place a source .bashrc
at the bottom of ~/.profile and that does the job. So I'm wondering whether that is not good and if there is a better and cleaner way of doing that, since this is a bit of a hack?
Best Answer
https://stackoverflow.com/questions/9953005/should-the-bashrc-in-the-home-directory-load-automatically/9954208#9954208
See here. It's OK to add
source ~/.bashrc
to~/.profile
.