This question already has an answer here:
I am on a MAC running Yosemite.
Until recently, I only had a .profile, in which I added directories to my PATH.
Now I have a .bash_profile, which from what I experienced and later read online, causes the .profile to be ignored when opening a terminal window.
After some readings, I do understand how .pofile and .bash_profile differ. I do get that .bash_profile is only invoked when starting a shell.
I am however still not sure, for a basic user, what the drawbacks are, if any, in either:
- calling .profile from .bash_profile,
- or simply ignoring .bash_profile and setting all environment variables I may need from a shell in the .profile file directly.
For example, I read here that since .profile is ignored when .bash_profile is present, I could just add
in my bash_profile to invoke .profile.
And alternatively, though I understand that .bash_profile would allow me to set variables not needed outside of bash, I still can set everything I need in .profile and do not see what using .bash_profile brings me.