add option to disable tmux

This commit is contained in:
fosslinux 2019-03-03 08:35:08 +11:00
parent 733951fca4
commit bbf25102de
1 changed files with 4 additions and 2 deletions

View File

@ -103,8 +103,10 @@ export EDITOR='vim'
source .zsh-tmux-conf
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ] && [ -n "$NO_TMUX" ] ; } then
tmux attach
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ] ; } then
if [[ -v $NOTMUX ]] ; then
tmux attach
fi
fi