How to terminate a window in tmux?

前端 未结 10 1376
你的背包
你的背包 2021-01-29 17:31

How to terminate a window in tmux? Like the Ctrlak shortcut in screen with Ctrla being the prefix.

10条回答
  •  -上瘾入骨i
    2021-01-29 17:55

    try Prefix + &

    if you have

    bind q killp
    

    in your .tmux.conf, you can press Prefix + q to kill the window too, only if there is only one panel in that window.

    if you have multiple panes and want to kill the whole window at once use killw instead of killp in your config.

    the default of Prefix above is Ctrl+b, so to terminate window by default you can use Ctrl+b &

提交回复
热议问题