tmux, propagate to all panes

2 min readApr 30, 2017

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:

  1. Fire up a terminal, — any terminal — !
  2. Fire up a tmux session:
    $ tmux
  3. 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 -
  4. 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.
  5. To switch this feature off, you can type the following sequence:
    ctrl + b :
    setw synchronize-panes off

Hope that was a helpful tip. ;)

--

--

Ibrahim AbdelFattah
Ibrahim AbdelFattah

Written by Ibrahim AbdelFattah

Another World Change seeker, with great motivation and a lot of gonna come true dreams! I usually write about technology, development and software engineering..

Responses (3)