Reattaching tmux sessions from smaller client


I regularly use mosh and tmux on a phone, iPad, and laptop. Since mosh does not disconnect sessions, attaching tmux on both screens at the same time will result in a session on the larger screen that looks like this:

When reattaching the session on the larger screen, use the -d option to disconnect all other sessions first:

tmux attach -d