summaryrefslogtreecommitdiff
path: root/.config/login.d/02_tmpdir.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/login.d/02_tmpdir.sh')
-rw-r--r--.config/login.d/02_tmpdir.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/login.d/02_tmpdir.sh b/.config/login.d/02_tmpdir.sh
new file mode 100644
index 0000000..d0079aa
--- /dev/null
+++ b/.config/login.d/02_tmpdir.sh
@@ -0,0 +1,3 @@
+mkdir -p -- "$XDG_RUNTIME_DIR/tmpdir"
+export TMPDIR="$XDG_RUNTIME_DIR/tmpdir"
+ln -sfT -- "$TMPDIR" "$HOME/tmp"