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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user