Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.bashrc?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Fri Aug 16, 2002 10:13 pm    Post subject: .bashrc? Reply with quote

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
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 594
Location: USA

PostPosted: Fri Aug 16, 2002 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Aug 16, 2002 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Aug 16, 2002 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum