1 |
So /etc/profile contains the following message: |
2 |
|
3 |
# You should override these in your ~/.bashrc (or equivalent) for per-user |
4 |
# settings. For system defaults, you can add a new file in /etc/profile.d/. |
5 |
export EDITOR=${EDITOR:-/bin/nano} |
6 |
export PAGER=${PAGER:-/usr/bin/less} |
7 |
|
8 |
Therefore I have created a plain text file /etc/profile.d/essential_defaults |
9 |
|
10 |
$ cat |
11 |
|
12 |
export HISTSIZE=900 |
13 |
export HISTFILESIZE=900 |
14 |
export HISTCONTROL=erasedups |
15 |
|
16 |
# vi-style Bash history editing |
17 |
set -o vi |
18 |
|
19 |
export MANPAGER="/usr/bin/most" |
20 |
$ |
21 |
|
22 |
Yet when I log in, these environment variables are not set. |
23 |
|
24 |
The file is world-readable (mode 644), and I even tried setting the execute bit (`chmod +xxx`). |
25 |
|
26 |
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? |
27 |
|
28 |
Stroller. |