From 9f97f025caf3a06c9895dce57717d0a8f1a4aa8b Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 25 Nov 2015 18:27:57 +0100 Subject: [PATCH] If tmux is available, set a TMUX_TMPDIR to homeDirectory! --- zshenv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshenv b/zshenv index dd22d54..518a7a7 100644 --- a/zshenv +++ b/zshenv @@ -80,3 +80,8 @@ if [ ${USER} = "root" ]; then export TMOUT=1800 fi +# Tmux +if [ $(command -v tmux) ]; then + export TMUX_TMPDIR=~/.tmux/socks/ + [ ! -d "${TMUX_TMPDIR}" ] && mkdir -p "${TMUX_TMPDIR}" || chmod 0700 "${TMUX_TMPDIR}" +fi