How to attach and detach a iterm2 session under Mac:
Inhaltsverzeichnis
Create session
To create a new tmux session use the parameter -CC
tmux -CC
Attach session
To attach an existing session you can use the same parameter.
tmux -CC attach
Detach session
iterm2 -> Shell -> tmux -> detach