I\'m writing a shell script that creates / attaches or switches to a given session, depending on whether one is inside tmux and the session exists.
I\'ve got everything
You can try unset TMUX first, this works for me.
unset TMUX