Gentoo Archives: gentoo-user

From: Michael Orlitzky <michael@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting default user environments in /etc/profile.d/
Date: Tue, 01 May 2012 18:48:00
Message-Id: 4FA02B00.4040806@orlitzky.com
In Reply to: [gentoo-user] Setting default user environments in /etc/profile.d/ by Stroller
1 On 05/01/2012 02:11 PM, Stroller wrote:
2 > So /etc/profile contains the following message:
3 >
4 > # You should override these in your ~/.bashrc (or equivalent) for per-user
5 > # settings. For system defaults, you can add a new file in /etc/profile.d/.
6 > export EDITOR=${EDITOR:-/bin/nano}
7 > export PAGER=${PAGER:-/usr/bin/less}
8 >
9 > Therefore I have created a plain text file /etc/profile.d/essential_defaults
10 >
11
12 First of all, use `eselect pager` =)
13
14 The reason this isn't working is that the comment at the top of
15 /etc/profile fails to mention this:
16
17 for sh in /etc/profile.d/*.sh ; do
18 [ -r "$sh" ] && . "$sh"
19 done
20 unset sh
21
22 So it looks like you need to add a ".sh" extension.

Replies

Subject Author
Re: [gentoo-user] Setting default user environments in /etc/profile.d/ Stroller <stroller@××××××××××××××××××.uk>