View previous topic :: View next topic |
Author |
Message |
proxy Apprentice
Joined: 20 Apr 2002 Posts: 260 Location: Chantilly, VA
|
Posted: Fri May 03, 2002 8:10 am Post subject: standard bash install should have ~/.bashrc and /etc/bashrc |
|
|
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 |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Tue May 07, 2002 8:13 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|