public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Setting default user environments in /etc/profile.d/
@ 2012-05-01 18:11 Stroller
  2012-05-01 18:20 ` [gentoo-user] " Remy Blank
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Stroller @ 2012-05-01 18:11 UTC (permalink / raw
  To: gentoo-user

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

$ cat 

export HISTSIZE=900
export HISTFILESIZE=900
export HISTCONTROL=erasedups

# vi-style Bash history editing
set -o vi

export MANPAGER="/usr/bin/most"
$

Yet when I log in, these environment variables are not set. 

The file is world-readable (mode 644), and I even tried setting the execute bit (`chmod +xxx`).

If I source the file using `. /etc/profile.d/essential_defaults` then suddenly I get the right pager, but it does not seem to be sourced at login, as I believe is promised. What am I doing wrong or misunderstanding, please?

Stroller.




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-05-02  4:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-05-02  3:58   ` Stroller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox