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 <waltd...@waltdnes.org>

Reply via email to