On Thursday 24 August 2006 19:04, Neil Bothwick wrote:

> On Thu, 24 Aug 2006 09:44:28 -0700, gentuxx wrote:
> > I'm having an issue with root's .bashrc not getting sourced at
> > login.
>
> From man bash:
>
> "When an interactive shell that is not a login shell is started, bash
> reads and executes commands from ~/.bashrc, if that file exists."
>
> .bash_profile is read for a login shell.

Yes, the usual way around this is to put

[[ -f ~/.bashrc ]] && . ~/.bashrc

at the beginning of .bash_profile.

The files in /etc/skel use this solution, but gentoo installation does 
not create those files for user root by default, you have to copy them 
by hand.
-- 
gentoo-user@gentoo.org mailing list

Reply via email to