stroller at stellar
May 1, 2012, 11:11 AM
So /etc/profile contains the following message:
Setting default user environments in /etc/profile.d/
# 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/.
Therefore I have created a plain text file /etc/profile.d/essential_defaults
# vi-style Bash history editing
set -o vi
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?