If tmux is available, set a TMUX_TMPDIR to homeDirectory!

This commit is contained in:
Jeremy Gardais 2015-11-25 18:27:57 +01:00
parent 33789845ed
commit 9f97f025ca
1 changed files with 5 additions and 0 deletions

5
zshenv
View File

@ -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