Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
standard bash install should have ~/.bashrc and /etc/bashrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 253
Location: Chantilly, VA

PostPosted: Fri May 03, 2002 8:10 am    Post subject: standard bash install should have ~/.bashrc and /etc/bashrc Reply with quote

well i just think that the basic bash install should have a ~/.bashrc which contains somthing like this:

# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

then we can put some global alias's/prompt in /etc/bashrc. The reason why i think this is needed is because when i go into X and run terms...bash_profile is NOT run for each of them. So my fancy prompts and aliases (ls = ls --color=tty :)) dont happen :(

I took the idea from my old Redhat install, but it works very nicely. I have manually done it on my own system, but i hate to have to copy that .bashrc into each users dir each time :( ... which means that the useradd script will need minor adjustment (i think)

what do you guys think, personally i find it very usefull.

proxy
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Tue May 07, 2002 8:13 pm    Post subject: Reply with quote

I agree! This was one confusing thing for me that took me a while to realise there was no /etc/bashrc. There is a .bashrc though.

You wouldn't need to edit the useradd script though, just edit/add the files in /etc/skel. That is where useradd grabs the files it uses when it creates a user home directory.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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