From 48e7f85acb783b7939aa3b97e216a3b5ba25cf5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 28 May 2009 22:02:47 +0000 Subject: [PATCH] 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 --- etc/bashrc.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/bashrc.sh b/etc/bashrc.sh index 38f839f4476..71e2ff001db 100644 --- a/etc/bashrc.sh +++ b/etc/bashrc.sh @@ -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