Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
local profile settings
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
spookyghost
Guest





PostPosted: Tue Apr 30, 2002 3:34 pm    Post subject: local profile settings Reply with quote

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
Developer


Joined: 17 Apr 2002
Posts: 136
Location: Ozarks, USA

PostPosted: Tue Apr 30, 2002 3:43 pm    Post subject: Reply with quote

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


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

PostPosted: Tue Apr 30, 2002 4:20 pm    Post subject: I like this better Reply with quote

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
View user's profile Send private message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Wed May 01, 2002 1:44 pm    Post subject: Reply with quote

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
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