X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/c7413c0dc7f1534e2ee345054650d34ed91b74b6..a4c2395b931200584b53b850bd6b9c8e9d0385e9:/dot/bash_profile diff --git a/dot/bash_profile b/dot/bash_profile index 27eec06..d61a7c3 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -2,9 +2,8 @@ ### ### Bash startup things -## Only do any of this if we haven't done it before. Otherwise we -## can have loops and lots of wasted time. -if [ -z "$__mdw_profile" ]; then +## The `.bashrc' hook will run us if it thinks we haven't been run before. +## We should therefore let it know. export __mdw_profile=done ###-------------------------------------------------------------------------- @@ -286,9 +285,6 @@ fi ## If there's a local hook then run it. [ -f "$HOME/.profile-local" ] && . "$HOME/.profile-local" -## End of the `__mdw_profile' guard. -fi - ## If we haven't run the `.bashrc' yet, and this shell is interactive, then ## run it now. [ -z "$__mdw_bashrc" ] && [ -t 0 ] && \