1 |
On 05/01/2012 02:11 PM, Stroller wrote: |
2 |
> So /etc/profile contains the following message: |
3 |
> |
4 |
> # You should override these in your ~/.bashrc (or equivalent) for per-user |
5 |
> # settings. For system defaults, you can add a new file in /etc/profile.d/. |
6 |
> export EDITOR=${EDITOR:-/bin/nano} |
7 |
> export PAGER=${PAGER:-/usr/bin/less} |
8 |
> |
9 |
> Therefore I have created a plain text file /etc/profile.d/essential_defaults |
10 |
> |
11 |
|
12 |
First of all, use `eselect pager` =) |
13 |
|
14 |
The reason this isn't working is that the comment at the top of |
15 |
/etc/profile fails to mention this: |
16 |
|
17 |
for sh in /etc/profile.d/*.sh ; do |
18 |
[ -r "$sh" ] && . "$sh" |
19 |
done |
20 |
unset sh |
21 |
|
22 |
So it looks like you need to add a ".sh" extension. |