summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/profile11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/profile b/etc/profile
index 75c1f870..8e92e824 100644
--- a/etc/profile
+++ b/etc/profile
@@ -28,6 +28,12 @@ fi
export PATH
unset ROOTPATH
+# process *.sh files in /etc/profiled.d
+for sh in /etc/profile.d/*.sh ; do
+ [ -r "$sh" ] && . "$sh"
+done
+unset sh
+
if [ -n "${BASH_VERSION-}" ] ; then
# Newer bash ebuilds include /etc/bash/bashrc which will setup PS1
# including color. We leave out color here because not all
@@ -50,8 +56,3 @@ else
# understand sequences such as \h, don't put anything special in it.
PS1="${USER:-$(whoami 2>/dev/null)}@$(uname -n 2>/dev/null) \$ "
fi
-
-for sh in /etc/profile.d/*.sh ; do
- [ -r "$sh" ] && . "$sh"
-done
-unset sh