How to send a command to all panes in tmux?

后端 未结 8 1187
夕颜
夕颜 2021-01-29 17:13

I like to call :clear-history on panes with a huge scrollback. However, I want to script a way to send this command to all the panes in the various windows.

8条回答
  •  渐次进展
    2021-01-29 17:59

    my tmux version is 1.9a, and this works for me, one key is enough for both on and off

    bind-key X set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
    

提交回复
热议问题