我有一个键绑定来设置符合我喜好的窗格,但有时事情会变得一团糟或失控,我想关闭所有的窗格并重新运行脚本。是否有一个简单的tmux
命令来关闭除我当前所在的窗格之外的所有窗格?
发布于 2011-06-22 19:29:18
您可以使用“杀死窗格”命令。
kill-pane [-a] [-t target-pane]
(alias: killp)
Destroy the given pane. If no panes remain in the containing window, it is also destroyed. The -a option kills all but the pane given with -t.
因此,例如,如果您想要杀死除窗格0以外的所有窗格:
kill-pane -a -t 0
如果您不知道窗格号是什么,可以使用“Display-窗格”命令:
display-panes [-t target-client]
(alias: displayp)
Display a visible indicator of each pane shown by target-client. See the display-panes-time, display-panes-colour, and display-panes-active-colour
session options. While the indicator is on screen, a pane may be selected with the '0' to '9' keys.
发布于 2014-03-24 17:30:47
还有"^b !“根据http://www.dayid.org/os/notes/tm.html的说法(我也试过了,而且它对我有用)
https://unix.stackexchange.com/questions/15449
复制相似问题