0

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.

Gapry
  • 145
  • 4
  • 6

1 Answers1

3

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.

sebelk
  • 4,209
  • 10
  • 35
  • 54