当我按下Ctrl+bw时,我看到了我之前使用过的窗口。我怎样才能把它们全部删除呢?
答案1
从 tmux 手册页:
kill-window [-a] [-t target-window]
(alias: killw)
Kill the current window or the window at target-window, removing it
from any sessions to which it is linked. The -a option kills all
but the window given with -t.
因此,在命令提示符下尝试:
$ tmux kill-window -a
如果您想保留一个窗口,也将其包括在内:
$ tmux kill-window -a -t:<window number>