bashrc: include /etc/profile instead of /etc/profile.d/*

This commit is contained in:
Silvan Calarco 2011-10-21 01:57:38 +02:00
parent 7bfff05ba0
commit 46447b5367

View File

@ -40,11 +40,7 @@ if [ "$PS1" ]; then
fi
if ! shopt -q login_shell ; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i
if [ -r /etc/profile ]; then
. /etc/profile
fi
done
unset i
fi
# vim:ts=4:sw=4