/etc/profile.d/sh.local

General support questions
Post Reply
ron7000
Posts: 159
Joined: 2019/01/15 20:00:28

/etc/profile.d/sh.local

Post by ron7000 » 2019/05/02 18:47:49

so it says "sourced from /etc/profile, any required envvar overrides to this file"

I hate rm -i and cp -i
In /etc/profile.d/colorls.sh at the bottom is where that is aliased, I sometimes comment them out in that file.
However if I do "unalias rm 2>dev/null" in /etc/profile.d/local.sh that does not work
If I put that unalias in /etc/profile.d/anythingelse.sh then it works.
why?
I've been not using "sh.local"
When I started playing with centos7.6 I coincidentally created a new "local.sh"
having an empty "sh.local" there bothers me when having a "local.sh" :?
For BASH, anything .sh under /etc/profile.d/ gets sourced correct?

jscarville
Posts: 135
Joined: 2014/06/17 21:50:37

Re: /etc/profile.d/sh.local

Post by jscarville » 2019/05/02 22:58:54

ron7000 wrote:
2019/05/02 18:47:49
For BASH, anything .sh under /etc/profile.d/ gets sourced correct?
Yes, in alphabetical order but with sh.local getting sourced last.

Post Reply