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.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux/profile.d/tmux.sh b/tmux/profile.d/tmux.sh
new file mode 100644
index 00000000..2a936da5
--- /dev/null
+++ b/tmux/profile.d/tmux.sh
@@ -0,0 +1,3 @@
+# Encourage tmux to put its sockets into XDG_RUNTIME_DIR rather than /tmp
+[ -n "$XDG_RUNTIME_DIR" ] || return
+export TMUX_TMPDIR=$XDG_RUNTIME_DIR