When I open a new terminal, it doesn't execute auto-start my bash_profile. I need to do "source .bash_profile".
When I use Screen, it happens again.
When I open a new terminal, it doesn't execute auto-start my bash_profile. I need to do "source .bash_profile".
When I use Screen, it happens again.
The file ~/.bash_profile is loaded only when you invoke bash as a login shell, otherwise load the ~/.bashrc
I mean if you open a terminal in X Window likely is invoked as a non-login shell. Many X terminal emulators have an option to configure as a login shell every time you open either a window or a tab.
man bash
for information on what files are sourced when. – goldilocks Sep 30 '13 at 21:44