7.2.3.2. The profile.d directory
for i in /etc/profile.d/*.sh ; do
if [ -r $i ]; then
. $i
fi
done
unset i
|
All readable shell scripts from the /etc/profile.d directory are read and executed.
These do things like enabling color-ls, aliasing vi to vim, setting locales
etc. The temporary variable i is unset to
prevent it from disturbing shell behavior later on.