0

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?

Etan Reisner
  • 77,877
  • 8
  • 106
  • 148
Mathew P
  • 57
  • 2
  • 9

1 Answers1

1

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

code_monk
  • 9,451
  • 2
  • 42
  • 41