aboutsummaryrefslogtreecommitdiff
path: root/tmux/profile.d/tmux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/profile.d/tmux.sh')
-rw-r--r--tmux/profile.d/tmux.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmux/profile.d/tmux.sh b/tmux/profile.d/tmux.sh
new file mode 100644
index 00000000..15ba00ff
--- /dev/null
+++ b/tmux/profile.d/tmux.sh
@@ -0,0 +1,4 @@
+# Encourage tmux to put its sockets into XDG_RUNTIME_DIR rather than /tmp
+[ -n "$XDG_RUNTIME_DIR" ] || return
+TMUX_TMPDIR=$XDG_RUNTIME_DIR
+export TMUX_TMPDIR