Using tmux for pair programming

So we saw how to create sessions and how you can attach an existing session, but did you wonder what would happen if more than one terminal attached to the same session?

The ability to connect multiple terminals to the same session ends up being one of the biggest advantages tmux offers. By allowing two or more terminal windows to connect to the same tmux session, tmux becomes an extremely powerful collaboration tool. With tmux, two or more people can see and even interact with the same content at the same time!

Connecting to the same session locally

Before we get to full pair programming, let's try just connecting to the same session locally in two different terminal windows and see what happens.

If you followed the ...

Get Getting Started with tmux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.