Add /etc/profile.d directory support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user