View previous topic :: View next topic |
Author |
Message |
swingarm l33t
Joined: 08 Jun 2002 Posts: 627 Location: Northern Colorado
|
Posted: Fri Aug 16, 2002 10:13 pm Post subject: .bashrc? |
|
|
I thought the .bashrc file was supposed to be in ~/.bashrc and /etc/bashrc but the only occurance I can find on my computer is in /etc/skel/.bashrc, is this right? I tried creating it on my own but nothing happens so I think there's something else going on. Just for the record I'm on Gentoo 1.4b(GCC 3.2 pre1) and KDE 3.02.
Kent |
|
Back to top |
|
|
nitro322 Guru
Joined: 24 Jul 2002 Posts: 594 Location: USA
|
Posted: Fri Aug 16, 2002 10:25 pm Post subject: |
|
|
for some reason, Gentoo has issues reading bashrc files correctly. It also doesn't automatically copy /etc/skel/* to your home directory when I new user is created, so do that manually. That should include both .bashrc and .bash_profile. Add this to .bash_profile id it's not already there:
Code: | #This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc |
You should be good to go after that. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Aug 16, 2002 10:30 pm Post subject: |
|
|
I think that the organization of /etc/profile (and the absence of an /etc/bashrc that gets sourced from users' .bashrc) could be done better in Gentoo.
However, useradd will copy files from the skel dir. It needs to be given the -m flag.
nitro322 wrote: | for some reason, Gentoo has issues reading bashrc files correctly. It also doesn't automatically copy /etc/skel/* to your home directory when I new user is created, so do that manually. That should include both .bashrc and .bash_profile. Add this to .bash_profile id it's not already there:
Code: | #This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc |
You should be good to go after that. |
|
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Aug 16, 2002 10:36 pm Post subject: |
|
|
Stuff with bashrc and bash_profile can be a bit arcane since things work differently depending on whether you have a login shell or not, whether you have a non-interactive shell and whether bash was invoked as sh.
You can find some more details here or here.
man bash tells you all you would ever want to know . |
|
Back to top |
|
|
|