1

I've put a .bash_login file in my $HOME-directory but it doesn't execute. I've also tried .bash_profile but also doesn't work. There are also

  • .profile
  • .bash_history
  • .bash_logout

Any idea? I'm using Crunchbang 10 Statler.

binW
  • 13,194

1 Answers1

4

Bash only looks for .bash_login or .profile files if it is executed as interactive login shell. When it is executed as interactive non-login shell it reads .bashrc. Commonly it is the second case i.e when you run gnome-terminal bash is run as non-login shell. Applications->Accessories->Terminal is a menu entry for gnome-terminal.

binW
  • 13,194