From 3afe7de5c5ef374cd1850b881642c53f8413994b Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 20 Feb 2016 17:27:08 +0000 Subject: [PATCH] dot/bash_profile: Don't change directory if running under schroot. --- dot/bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/bash_profile b/dot/bash_profile index ac47371..b6c09bf 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -56,7 +56,7 @@ __mdw_programp () { type -t >/dev/null "$1"; } ## changes directory and displays the name of the directory in a subshell to ## avoid changing the current state. HOME=`(set -P; cd $HOME; pwd)` -cd $HOME +[ -n "$SCHROOT_SESSION_ID" ] || cd $HOME ## CDE's session structure is demented and doesn't leave us with a proper ## logout hook, so synthesize one here. -- 2.11.0