Running Ventura 13.1, with Bash as default, and with a .profile file.
If I launch Terminal from the Dock or Spotlight, it opens on ~, and runs the .profile. Moreover, if I am in the Finder, at ~, and open Terminal from services, all works well, too.
The problem comes when I launch the Terminal from the Finder, in a location different from home. In this case, my .profile is not run. Additionally, if I source ~/.profile
, it doesn’t work. On the other hand, if I move (within the Terminal session) to my home and do the source, the .profile file is then run.
I would like to have my .profile run regardless of the folder from where I launch the Terminal. How can I do that? What am I missing here?
Thank you.