From 7738df0be3d4c8e708c85d9d19296d0106e3cb86 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 30 Nov 2011 19:14:32 +0000 Subject: [PATCH] dot/bash_profile: Move establishment of TMPDIR until after PATH is set up. Otherwise we can't find a locally installed copy of `tmpdir'. --- dot/bash_profile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dot/bash_profile b/dot/bash_profile index 1621d13..d3d179a 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -59,10 +59,6 @@ __mdw_programp () { type -t >/dev/null "$1"; } HOME=`(set -P; cd $HOME; pwd)` cd $HOME -## Establish a temporary directory. -[ "$TMPDIR" ] || eval `tmpdir -b` -export TMP=$TMPDIR - ## CDE's session structure is demented and doesn't leave us with a proper ## logout hook, so synthesize one here. [ -n "$DT" ] && trap "source $HOME/.bash_logout" EXIT @@ -98,6 +94,10 @@ __mdw_addto PYTHONPATH r $HOME/lib/python ###-------------------------------------------------------------------------- ### Various other kinds of configuration. +## Establish a temporary directory. +[ "$TMPDIR" ] || eval `tmpdir -b` +export TMP=$TMPDIR + ## Sensible umask if users have their own groups. umask 002 -- 2.11.0