setting precmd/postcmd based on the presence of $TMUX