Tmux:在底行显示会话

mah*_*off 10 tmux

我想在屏幕的底行看到所有 tmux 会话,以 tmux 呈现当前会话中所有窗口的方式呈现。基本上是 <prefix> 菜单的粘性版本。

因此,屏幕底部将包含一行中的会话,并在其正上方,即当前会话窗口的常规行。

有什么方法可以实现吗?

小智 7

你可以把这个放在你的 ~/.tmux.conf

set -g status-right-length 80
set -g status-right '#(exec tmux ls| cut -d " " -f 1-3 |tr "\\n" "," )'
Run Code Online (Sandbox Code Playgroud)

这将列出所有会话,并“包装”一些信息以使其填写在一行中;)

现在,在 tmux 栏的右侧站点上,它将显示 tmux 会话和打开的窗口数。分离将表示为;

编辑:在您的 上添加以下行~/.tmux.conf,以便您可以即时重新加载配置:

bind r source-file ~/.tmux.conf
Run Code Online (Sandbox Code Playgroud)

现在,只要打<Control + B , r >就可以了。