]> arthur.ath.cx Git - ConfigScripts.git/blobdiff - sys/profile
Include profiles in /usr/local/etc/profile.d as well as in /etc/profile.d
[ConfigScripts.git] / sys / profile
index 8fac5d53d88108ed78e55533e784b9db6d10d71f..09d13180959acd0aaad36d9711eb9f477a618db0 100644 (file)
@@ -97,8 +97,8 @@ if [ -z "$XAUTHORITY" -a -r ~/.Xauthority ]; then
 fi
 
 # read profile additions
-if [ -d /etc/profile.d ]; then
-       for f in /etc/profile.d/*; do
+if [ -d /etc/profile.d -o -d /usr/local/etc/profile.d ]; then
+       for f in /etc/profile.d/* /usr/local/etc/profile.d/*; do
                [ -r "$f" ] || continue
                case "$f" in
                        *.csh)