Linux – Sourcing ~/.bashrc in ~/.profile

bashrclinuxmacosprofileterminal

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?