Add /etc/profile.d directory support

This commit is contained in:
2025-04-06 15:45:29 +03:00
parent ba4671ed6e
commit 2ff71bff73
3 changed files with 15 additions and 6 deletions
+7 -2
View File
@@ -22,12 +22,17 @@ if [ -f /etc/locale.conf ]; then
set +a
fi
if [ -d /etc/profile.d ]; then
for f in /etc/profile.d/*.sh; do
[ -r "$f" ] && source "$f"
done
fi
# Unsetting functions
unset -f append_path
# Run /etc/bashrc if in an interactive terminal
if [[ $- == *i* ]]
then
if [[ $- == *i* ]]; then
. /etc/bashrc
fi