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

Re: .bash_profile not sourced on login



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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Although these are settings for xterm, what I use today is rxvt-unicode.
Highly recommended for those that want a nice terminal emulator.

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).

Hope this helps, Rogério.


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

-- 
Rogério Brito : rbrito@ime.usp.br : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/



Reply to: