I want to install a package and in the README it says:
Add the following line to your login bash script (e.g., ~/.profile)
I cannot find any of them on my mac, where are they located?
I want to install a package and in the README it says:
Add the following line to your login bash script (e.g., ~/.profile)
I cannot find any of them on my mac, where are they located?
By default bash reads only /etc/bashrc at startup on mac, but you can (and should) go ahead and create ~/.profile with whatever commands you need, and your bash session will read it at startup.
As you might expect, files in /etc/ will be executed for every user starting a bash session, whereas files in ~/ will be executed only for you.
This excellent guide explains:
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_01.html