Reattaching tmux sessions from smaller client

Jason Murray

tmuxattach

tech

61 Words

2020-11-22 06:48 -0600


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