X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/2ab4329692381a068a0264fea3b93143fb376eea..0a030a3975ce30f3f3a701e2fd6876aef254324e:/dot/shell-rc diff --git a/dot/shell-rc b/dot/shell-rc index ac8819d..5c3c336 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -14,10 +14,6 @@ __mdw_source_if_exists () { done } -## Set the temporary directory again. (A setuid or setgid program may have -## unhelpfully forgotten this for us.) -case ${TMPDIR+t} in t) ;; *) eval $(tmpdir -b); esac - ###-------------------------------------------------------------------------- ### Prompt machinery. @@ -328,6 +324,16 @@ pathhack () { ###-------------------------------------------------------------------------- ### Finishing touches. +## Make sure `$HOME/bin' is on the path. +path_add "$HOME/bin" + +## Set the temporary directory again. (A setuid or setgid program may have +## unhelpfully forgotten this for us.) +case ${TMPDIR+t} in + t) ;; + *) if __mdw_programp tmpdir; then eval $(tmpdir -b); fi ;; +esac + ## For `root' use -- some simple molly-guards. case $(id -u) in 0)