summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 14:46:50 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 14:46:50 -0400
commit9a3c1bf05ed68ca46863f05f24218cb0eaacc8f5 (patch)
tree531c3b0b721ca70edc1914ddc4f68e495190fa6e
parentc7fdd165d8d3ad7fe63b1acb5b0d6854eb01808d (diff)
.profile: set TMPDIR
-rw-r--r--.profile8
1 files changed, 8 insertions, 0 deletions
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