summaryrefslogtreecommitdiff
path: root/src/etc/profile
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-02-18 17:36:51 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-02-18 17:36:51 +0400
commitd1e8f727620479a98ad568e8e3dc98e84bef45b2 (patch)
tree56a8dedb74e9e8a6f8692027e3eadd201eb37c5f /src/etc/profile
parentf40c73f3b30547f7267c84bd22677dec65029dc4 (diff)
version 0.2
Diffstat (limited to 'src/etc/profile')
-rw-r--r--src/etc/profile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/etc/profile b/src/etc/profile
new file mode 100644
index 0000000..93b503d
--- /dev/null
+++ b/src/etc/profile
@@ -0,0 +1,10 @@
+# If the /etc/profile.d directory is not sourced automatically
+# append this code to /etc/profile
+
+# Load profiles from /etc/profile.d
+if test -d /etc/profile.d/; then
+ for profile in /etc/profile.d/*.sh; do
+ test -r "$profile" && . "$profile"
+ done
+ unset profile
+fi