Problem with bash login.
Paul Lussier
p.lussier at comcast.net
Sun Jul 16 07:29:00 EDT 2006
"Steven W. Orr" <steveo at syslang.net> writes:
> This is really frustrating. I want to log into a linux box which is
> running gdm such that after I have logged in, any app that I start will be
> running in the environment that is normally established in my
> .bash_profile. I do not set environment variables in the .bashrc because
> they're not supposed to be set there.
[...snip...]
> People must have done this in the past.
Sure, in .bashrc, all I have is:
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
if [ -f ~/.profile ]; then
. ~/.profile # I came from a ksh world, and this "just works"
fi
in .profile (or .bash_profile if you prefer) I have:
ENV=$HOME/.profile
SHELL=/bin/bash
And a whole bunch of other variables like PATH, MANPATH, INFOPATH,
etc., all of which at some point get exported as well.
HTH,
--
Seeya,
Paul
More information about the gnhlug-discuss
mailing list