bashrc: include /etc/profile instead of /etc/profile.d/*
This commit is contained in:
parent
7bfff05ba0
commit
46447b5367
@ -40,11 +40,7 @@ if [ "$PS1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! shopt -q login_shell ; then # We're not a login shell
|
if ! shopt -q login_shell ; then # We're not a login shell
|
||||||
for i in /etc/profile.d/*.sh; do
|
if [ -r /etc/profile ]; then
|
||||||
if [ -r "$i" ]; then
|
. /etc/profile
|
||||||
. $i
|
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
fi
|
||||||
# vim:ts=4:sw=4
|
|
||||||
|
Loading…
Reference in New Issue
Block a user