aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-11-28 21:11:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-11-28 21:11:05 -0300
commitd18693d621bd84db2aee1e833f1968d138905d50 (patch)
tree413b649ae080c1f0f3aa8e2abd8c05422cb0fa8e
parent5414bb50729a3f52c505636813ba388f6876fbc0 (diff)
downloadprofile-d18693d621bd84db2aee1e833f1968d138905d50.tar.gz
profile-d18693d621bd84db2aee1e833f1968d138905d50.tar.bz2
Feat: possible support for rc.d and profile.d
-rw-r--r--profile.dot.link28
1 files changed, 23 insertions, 5 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 3c83dbb..bd13750 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -389,12 +389,30 @@ fi
# Make sure we start at the startup folder, defaulting to home
cd $STARTUP_FOLDER
-# Run startup commands
-#if [ ! -z "$STARTUP" ]; then
-# $STARTUP
+# Include other profiles
+if [ -d "$HOME/.profile.d" ]; then
+ scripts="`find $HOME/.profile.d -type f`"
+
+ for script in $scripts; do
+ include $script
+ done
+fi
+
+# Include custom profiles
+#if [ -d "$HOME/.custom/profile.d" ]; then
+# scripts="`find $HOME/.custom/profile.d -type f`"
+#
+# for script in $scripts; do
+# include $script
+# done
#fi
# Run startup scripts
-#if [ -d "$HOME/.custom/profile.d" ];
-# run-parts $HOME/.custom/profile.d
+#if [ -d "$HOME/.custom/rc.d" ]; then
+# run-parts $HOME/.custom/rc.d
+#fi
+
+# Run startup commands
+#if [ ! -z "$STARTUP" ]; then
+# $STARTUP
#fi