From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Setting default user environments in /etc/profile.d/
Date: Tue, 1 May 2012 18:52:40 -0400 [thread overview]
Message-ID: <20120501225240.GB6593@waltdnes.org> (raw)
In-Reply-To: <8C573D55-43CA-4450-9FB0-ED86AD58B7FB@stellar.eclipse.co.uk>
On Tue, May 01, 2012 at 07:11:37PM +0100, Stroller wrote
> So /etc/profile contains the following message:
>
> # You should override these in your ~/.bashrc (or equivalent) for per-user
> # settings. For system defaults, you can add a new file in /etc/profile.d/.
> export EDITOR=${EDITOR:-/bin/nano}
> export PAGER=${PAGER:-/usr/bin/less}
>
> Therefore I have created a plain text file /etc/profile.d/essential_defaults
I don't know if it gets executed in the right order. Are you using
baselayout 2? The items you mentioned are EDITOR and PAGER. For the
official way of changing global settings, see...
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5&style=printable
for examples. In my case...
waltdnes@d531 ~ $ cat /etc/env.d/99editor
EDITOR="/usr/bin/vim"
In your case, I would suggest creating a file called /etc/env.d/99pager
containing the line...
PAGER="/usr/bin/most"
Note that the files are sourced by name in your current locale sort
order. In just about every locale numbers should sort properly, which
would start at 00blahblahblah and go through 99blahblahblah.
--
Walter Dnes <waltdnes@waltdnes.org>
next prev parent reply other threads:[~2012-05-01 22:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 18:11 [gentoo-user] Setting default user environments in /etc/profile.d/ Stroller
2012-05-01 18:20 ` [gentoo-user] " Remy Blank
2012-05-01 19:41 ` [gentoo-user] " Stroller
2012-05-01 18:27 ` Michael Orlitzky
2012-05-01 19:40 ` Stroller
2012-05-02 2:26 ` Pandu Poluan
2012-05-02 4:01 ` Stroller
2012-05-01 18:38 ` Alex Schuster
2012-05-01 19:42 ` Stroller
2012-05-01 22:52 ` Walter Dnes [this message]
2012-05-02 3:58 ` Stroller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120501225240.GB6593@waltdnes.org \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox