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