向 tmux 中的所有窗口发送命令
是一种将相同命令发送到 tmux 中所有窗口而不是窗口中所有窗格的方法。同步窗格 - 将命令发送到一个窗口中的所有窗格。我需要在屏幕上显示类似“at”的内容。
Is a way to send the same command to all window in tmux, not to all pane in window. synchronize-panes - send command to all pane in one window. I need something like 'at' in screen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你总是可以这样做:
你也可以将其绑定到 tmux.conf 中的一个键,如下所示:
You could always do something like this:
You could also bind this to a key in your tmux.conf like this:
你可以这样做: https://gist.github.com/2773454
但这对每个窗格,但您可以进行相应调整。
一切都取决于您想要完成的任务,为此,我想要完成的一个示例是在所有窗格中获取 ~/.zsh 。
You could do something like this: https://gist.github.com/2773454
But this executes for every pane, but you could adjust accordingly.
All depends what your trying to accomplish, for this an example of what i want to accomplish is to source ~/.zsh in all panes.