summaryrefslogtreecommitdiffstats
path: root/source/a/etc/_etc/etc
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/etc/_etc/etc')
-rwxr-xr-xsource/a/etc/_etc/etc/profile.d/home-profile.d.csh.new9
-rwxr-xr-xsource/a/etc/_etc/etc/profile.d/home-profile.d.sh.new9
2 files changed, 18 insertions, 0 deletions
diff --git a/source/a/etc/_etc/etc/profile.d/home-profile.d.csh.new b/source/a/etc/_etc/etc/profile.d/home-profile.d.csh.new
new file mode 100755
index 000000000..13da1e238
--- /dev/null
+++ b/source/a/etc/_etc/etc/profile.d/home-profile.d.csh.new
@@ -0,0 +1,9 @@
+#!/bin/csh
+
+if ( -d "$HOME/.profile.d") then
+ foreach i ("$HOME"/.profile.d/*.csh)
+ source "$i"
+ end
+endif
+
+unsetenv i
diff --git a/source/a/etc/_etc/etc/profile.d/home-profile.d.sh.new b/source/a/etc/_etc/etc/profile.d/home-profile.d.sh.new
new file mode 100755
index 000000000..23078184f
--- /dev/null
+++ b/source/a/etc/_etc/etc/profile.d/home-profile.d.sh.new
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+if [ -d "$HOME/.profile.d" ]; then
+ for i in "$HOME"/.profile.d/*.sh; do
+ . "$i"
+ done
+fi
+
+unset i