From 9a3c1bf05ed68ca46863f05f24218cb0eaacc8f5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 12 Oct 2013 14:46:50 -0400 Subject: .profile: set TMPDIR --- .profile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.profile b/.profile index 2d6f370..e5e593f 100644 --- a/.profile +++ b/.profile @@ -27,6 +27,14 @@ for dir in $HOME/.prefix/lib; do fi done +# TMPDIR ############################################################# + +if [[ ! -d "$HOME/tmp" ]]; then + tmp="$(mktemp --tmpdir -d "$USER-tmpdir.XXXXXXXXXXXXXXXXXXX")" + ln -sf "$tmp" "$HOME/tmp" +fi +export TMPDIR="$HOME/tmp" + # Settings ########################################################### # Text editor -- cgit v1.2.3-54-g00ecf