View previous topic :: View next topic |
Author |
Message |
spookyghost Guest
|
Posted: Tue Apr 30, 2002 3:34 pm Post subject: local profile settings |
|
|
It would be nice to be able to install a local profile without having to edit /etc/profile in a similar way to SuSE. i.e. a line in /etc/profile:
test -f /etc/profile.local && . /etc/profile.local
I like this because it helps keep things that the distro sets separate from the things that I like to set. |
|
Back to top |
|
|
tod Developer
Joined: 17 Apr 2002 Posts: 136 Location: Ozarks, USA
|
Posted: Tue Apr 30, 2002 3:43 pm Post subject: |
|
|
Hi!
Isn't that what .bashrc and .bash_profile ( or the equivalent for you fav shell) in your home dir are for? |
|
Back to top |
|
|
proxy Apprentice
Joined: 20 Apr 2002 Posts: 260 Location: Chantilly, VA
|
Posted: Tue Apr 30, 2002 4:20 pm Post subject: I like this better |
|
|
ok, but what if you want the changed settings to apply to all users...I like the following soltution better. Make a new dir called /etc/profile.d/ and have /etc/profile execute all the scripts in that directory as the last thing it does. Very organized this way. |
|
Back to top |
|
|
Spooky Ghost Apprentice
Joined: 19 Apr 2002 Posts: 210 Location: Bristol, United Kingdom
|
Posted: Wed May 01, 2002 1:44 pm Post subject: |
|
|
Quote: | Make a new dir called /etc/profile.d/ and have /etc/profile execute all the scripts in that directory as the last thing it does. |
Hmm, much better idea than my original one. This fits in much better with how gentoo does (configures) things e.g. env.d, xinetd.d and the like.
Now I'm trying to identify which package the default /etc/profile comes in so I can cook up a patch, any ideas? (Can gentoo identify which package a particular file is from?)[/quote] |
|
Back to top |
|
|
|