Shell tux有没有办法让状态栏在不同的客户端上显示不同的内容?

Shell tux有没有办法让状态栏在不同的客户端上显示不同的内容?,shell,tmux,Shell,Tmux,我编写了一个简单的shell脚本,以帮助tmux在状态栏中显示所有会话,但是,tmux的状态栏总是在不同的客户端中显示相同的内容。 我的剧本如下 #/usr/bin/env bash session=`tmuxls | cut-d”“-f1 | tr-d:“| tr”\\n”` #附件|计数=`tmux ls | grep-n\(附件)| cut-d:'-f 1` 活动会话=`tmux显示消息-p'#S'` #session_start=“#[fg=brightblack,bg=black,no

我编写了一个简单的shell脚本,以帮助tmux在状态栏中显示所有会话,但是,tmux的状态栏总是在不同的客户端中显示相同的内容。 我的剧本如下

#/usr/bin/env bash
session=`tmuxls | cut-d”“-f1 | tr-d:“| tr”\\n”`
#附件|计数=`tmux ls | grep-n\(附件)| cut-d:'-f 1`
活动会话=`tmux显示消息-p'#S'`
#session_start=“#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=白色,bg=亮黑色]"
session_start=“#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=白色,bg=亮黑色]”
#session_end=“#[fg=black,bg=brightback,nobold,noitalics,nounderscore]#[fg=亮黑色,bg=黑色,nobold,noitalics,nounderscore]"
session_end=“#[fg=black,bg=brightback,nobold,noitalics,nounderscore]"
session_active_start=“#[fg=青色,bg=black,nobold,noitalics,nounderscore]#[fg=黑色,bg=青色]
session_active_end=“#[fg=black,bg=cyan,nobold,noitalics,nounderscore]"
session_str=“”
计数=1
在$session中为i
做
#如果[[$count-eq$attached_count]];则
如果[[$i==$active_session]];则
session_str=“${session_str}${session_active_start}${i}${session_active_end}”
其他的
session_str=“${session_str}${session_start}${i}${session_end}”
fi
计数=$((计数+1))
#中断
#回显“${i}”
完成
session_str=`echo${session_str}|tr-d“\n”`
printf“${session_str}”
```猛击
它将输出一个长字符串内容所有我的会话名称,并使附加的一个在其他颜色
“#[fg=亮黑色,bg=黑色,nobold,noitalics,nounderscore]#[fg=白色,bg=亮黑色]besiii#[fg=黑色,bg=亮黑色,nobold,noitalics,nounderscore]#[fg=亮黑色,bg=黑色,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack]conf#[fg=black,bg=brightblack,nobold,noitalics,nounderscore]#[fg=亮黑色,bg=黑色,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack]默认值#[fg=black,bg=brightblack,nobold,noitalics,nounderscore]#[fg=亮黑色,bg=黑色,nobold,noitalics,nounderscore]#[fg=白色,bg=亮黑色]lang#[fg=黑色,bg=亮黑色,nobold,noitalics,nounderscore]#[fg=青色,bg=黑色,nobold,noitalics,nounderscore]#[fg=黑色,bg=青色]vert#[fg=黑色,bg=青色,nobold,noitalics,nounderscore]"
但是,连接tmux客户端的所有iterm窗口都将显示相同的状态栏。
有没有办法让tmux在不同的附加客户端中显示不同的内容??
TL;DR:No


Tmux会话旨在为所有连接的用户显示完全相同的内容。如果用户在小型终端上连接,则每个人的视图都将被压缩为仅显示。这是无法避免的(除非您在同一会话中查看不同的窗口),并且在查看同一窗口时,无法向不同的用户显示不同的内容。

听到这一点非常难过。但是有没有类似于Github的插件[tmux prefix highlight](tmux prefix highlight)的方法它不仅可以在不同的客户机上显示不同的内容,还可以在不同的iterm2窗口中显示不同的内容?我知道tmux prefix highlight使用了tmux变量,该变量是\u模式下的
pane\u,可以使用任何其他变量吗?