I set use_tmux=1 and added the following code in .bashrc. However, when I re-open wsl-terminal, it always opens a new window instead of attaching to the existing one. It seems that the $ATTACH_ONLY is always null in the session, thus, tmux new-window -c "$PWD" 2>/dev/null && exec tmux a is always called even if there is a exising window.
Hi,
I set use_tmux=1 and added the following code in .bashrc. However, when I re-open wsl-terminal, it always opens a new window instead of attaching to the existing one. It seems that the $ATTACH_ONLY is always null in the session, thus,
tmux new-window -c "$PWD" 2>/dev/null && exec tmux a
is always called even if there is a exising window.