tmux, propagate to all panes
So, a lot of people usually nag me for not using iTerm2, one really powerful terminal emulator for macOS, but I favor tmux over it, for the fact that you can have tmux on almost all *nix supported platforms as I far as I know that iTerm is only supported on MacOS(s). One feature they kept bragin’ about in iTerm2 was the ability to split a window to multiple panes and be able to type into all panes at the same time, so in one pane I could type one command and it will be typed and executed on all other panes.
So, I tried looking around and found that you can do that with tmux easily as per the following:
- Fire up a terminal, — any terminal — !
- Fire up a tmux session:
$ tmux - Split your current tmux window by typing the following sequence:
ctrl + b :
split-window
now you should have two panes in the current window. I usually map that sequence to ctrl +b - - Now type the following sequence:
ctrl + b :
setw synchronize-panes on
and now all what you type in one of the panes, will be populated to others. - To switch this feature off, you can type the following sequence:
ctrl + b :
setw synchronize-panes off
Hope that was a helpful tip. ;)