tmux Synchronized Panes
tmux can send the text you type to multiple panes:
Even though I’ve used tmux for years, I never realized that it could do that until my colleague (thanks @laurence_man!) told me about it.
It’s similar to clusterssh without having to ssh anywhere. 😄
Call it from the tmux command line:
Make it easy: key binding
Having to type :setw synchronize-panes
is too much work. I added this to tmux.conf:
I don’t necessarily recommend that key binding, pick something that works for
you. Other people
use ctrl-x
(without prefix) but that conflicts with some bash/vim bindings.
Make it obvious: window status
If the panes are synchronized, I want an easy way to tell. I added this to tmux.conf:
The pane_synchronized
variable can be used for conditional coloring in the window status. (inspiration)
Guess which window has synchronized panes ^
Feel free to check my tmux.conf and grab the parts you like.