Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting default user environments in /etc/profile.d/
Date: Wed, 02 May 2012 04:00:58
Message-Id: BF8006BD-68E1-4F96-A4B5-038746096C23@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Setting default user environments in /etc/profile.d/ by Walter Dnes
1 On 1 May 2012, at 23:52, Walter Dnes wrote:
2
3 > On Tue, May 01, 2012 at 07:11:37PM +0100, Stroller wrote
4 >> So /etc/profile contains the following message:
5 >>
6 >> # You should override these in your ~/.bashrc (or equivalent) for per-user
7 >> # settings. For system defaults, you can add a new file in /etc/profile.d/.
8 >> export EDITOR=${EDITOR:-/bin/nano}
9 >> export PAGER=${PAGER:-/usr/bin/less}
10 >>
11 >> Therefore I have created a plain text file /etc/profile.d/essential_defaults
12 >
13 > … The items you mentioned are EDITOR and PAGER. For the
14 > official way of changing global settings, see...
15 > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5&style=printable
16 > for examples. In my case…
17
18 Nope, those are merely the next two lines from the file when I ran `grep -C X` to find where I'd read about putting files in /etc/profile.d/.
19
20 If you read my original post (solved) now, you'll see that in my actual my_defaults.sh file I only concern myself with the MANPAGER, the history file and vi-style line editing (for Bash).
21
22 Sorry if this was unclear,
23
24 Stroller.