[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .bash_profile not sourced on login [Solved]



Dear all,

Rogério Brito wrote:
On May 08 2005, Luis R Finotti wrote:
Sorry for not mentioning it. It was under X... I guess in that case I don't have a "login shell". So what would be the proper place to set variables for terminals running in X?


I think that the best option would be to give proper instructions in your
.Xdefaults or .Xresources file. Mine has (among many other things):

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
XTerm*loginShell:               off
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

That was the difference with my work set up (with Fedora). It seems like I had the wrong idea of what .bashrc and .bash_profile were supposed to do. (I thought the former was for configuring bash while the latter for initial (on login) set up, like env. variables etc.)

In my case, though, I just linked my .bashrc to my .bash_profile, as I
usually want both login and non-login shells to have the same behaviour
(so, I can live without telling any xterm-like program to work with a login
shell).

I'll do that (or do what Almut said -- thanks).


P.S.: Was it you that studied with Prof. Paulo Agozzini?

Yes it was.  Nice to see someone from IME (Brazil) in the list!

Best to all and thanks for the replies!

Luis



Reply to: