Terminal.app: does it invoke .profile first as log in shell?

74 Views Asked by At

Does anyone know if Terminal.app invokes the shell as a log in shell and sources .profile?

So far, I have inserted environment variables in .profile and note when Terminal.app launches a new shell session, these .profile variables are updated. It was my understanding that .profile should only be sourced at log in of Mac OSX.

Thanks

1

There are 1 best solutions below

0
On BEST ANSWER

Based on my tests, Terminal.app invokes .profile if in Preferences->Profiles->Shell->Startup->Run command = $SHELLNAME. Where $SHELLNAME is the name of your shell {ksh, bash, zsh, etc...}.