Send keyboard shortcut to all panels for current tmux session

I have several windows open in a window tmux. All panels run some commands / programs. And I need to close them all. Of course, I can manually switch to each panel and press Ctrl+ C. However, it is long. Is there any way to multicast to all panels tmux?

+4
source share
1 answer

In tmux there is a command that allows you to send any commands / shortcuts to all panels:

PREFIX : setw synchronize-panes

PREFIX- This is a standard activating key combination tmux. This is Ctrl Bin my tmux (others have Ctrl A, for example)

, ~/.tmux-conf, / :

bind e setw synchronize-panes on
bind E setw synchronize-panes off
+12

All Articles