summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-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