How to send a command to all panes in tmux?

后端 未结 8 1027
夕颜
夕颜 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 18:04

    Have you tried following in tmux window with multiple panes

    Ctrl-B :
    
    setw synchronize-panes on
    
    clear history
    

提交回复
热议问题