Allowing the system bashrc not to be parsed, if an env variable exists.

I think bash used not to include the system bashrc on "--rcfile myrc", but
as now it doesn't allow it anymore, let's go on the env variable.


svn path=/nixos/trunk/; revision=15779
This commit is contained in:
Lluís Batlle i Rossell 2009-05-28 22:02:47 +00:00
parent debbb8a199
commit 48e7f85acb

View File

@ -1,3 +1,6 @@
if [ -n "$NOSYSBASHRC" ]; then
return
fi
# Initialise a bunch of environment variables.
export PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
export LD_LIBRARY_PATH=/var/run/opengl-driver/lib