I made some function in my ~/.profile to automate things like SSH connections. They were working fine until recently. Now I need to "run" the ~/.profile by doing . .profile
each time I open Terminal for my functions to work. How can fix this to make the functions available at start automatically?
I'm running Mountain Lion 10.8.4.
Best Answer
Does
~/.bash_profile
exist?If both
~/.bash_profile
and~/.profile
exist, bash reads only~/.bash_profile
when it is invoked as an interactive login shell.https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html: