1 |
On Thursday 24 August 2006 19:04, Neil Bothwick wrote: |
2 |
|
3 |
> On Thu, 24 Aug 2006 09:44:28 -0700, gentuxx wrote: |
4 |
> > I'm having an issue with root's .bashrc not getting sourced at |
5 |
> > login. |
6 |
> |
7 |
> From man bash: |
8 |
> |
9 |
> "When an interactive shell that is not a login shell is started, bash |
10 |
> reads and executes commands from ~/.bashrc, if that file exists." |
11 |
> |
12 |
> .bash_profile is read for a login shell. |
13 |
|
14 |
Yes, the usual way around this is to put |
15 |
|
16 |
[[ -f ~/.bashrc ]] && . ~/.bashrc |
17 |
|
18 |
at the beginning of .bash_profile. |
19 |
|
20 |
The files in /etc/skel use this solution, but gentoo installation does |
21 |
not create those files for user root by default, you have to copy them |
22 |
by hand. |
23 |
-- |
24 |
gentoo-user@g.o mailing list |