X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/01c036af371dd8f24268aabe7d009974866c1be3..3afe7de5c5ef374cd1850b881642c53f8413994b:/dot/bash_profile 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.