Creating a new tmux session or attaching to an existing one with WSL
The default “Command Line” argument for the WSL profile looks like this:
C:\WINDOWS\system32\wsl.exe -d Ubuntu
Append this to create a new tmux session or attach to an existing one:
tmux attach || tmux new
So that it looks like this:
C:\WINDOWS\system32\wsl.exe -d Ubuntu tmux attach || tmux new
From this Stack Overflow answer.