X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2FBECOME.bashrc;h=50cb97a771caa6e3151fb73f958e5d756b90fd9e;hp=32a69ed4f83267a0ac7749963923d070cec627ca;hb=fe75e01fb1409059b32d37b0464651d2852d8340;hpb=f00d519dd073659e3a079be65c57d5b64cb60a69 diff --git a/.profile.d/BECOME.bashrc b/.profile.d/BECOME.bashrc index 32a69ed..50cb97a 100644 --- a/.profile.d/BECOME.bashrc +++ b/.profile.d/BECOME.bashrc @@ -1,3 +1,8 @@ +# Export PROFILE_HOME to the environment if we need to preserve it. +if [ -n "$PROFILE_HOME" ]; then + [ "$PROFILE_HOME" = "$HOME" ] || export PROFILE_HOME +fi + # Find a path, preferring the target user's version. function find_target_profile() { local path="$1"; shift