如何在 tmux 2.9a 中设置窗口标题颜色? [英] How Do I set window title color in tmux 2.9a?

查看:59
本文介绍了如何在 tmux 2.9a 中设置窗口标题颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在升级到 tmux 2.9a 版之后,我不得不更新我的配置文件,因为一些设置的名称发生了变化.状态栏窗口标题部分的颜色不再有效.这是我的配置文件的那一部分:

Following the upgrade to tmux version 2.9a, I had to update my configuration file as some of the settings had name changes. The colors for the window title section of my status bar no longer work. Here is that part of my configuration file:

# set color for status bar
set-option -g status-style bg=colour235
set-option -g status-style fg=yellow
set-option -g status-style dim

# set window title list colors
set-window-option -g window-status-style fg=brightblue
set-window-option -g window-status-style bg=colour236
set-window-option -g window-status-style dim

# active window title colors
set-window-option -g window-status-current-style fg=brightred
set-window-option -g window-status-current-style bg=colour236
set-window-option -g window-status-current-style bright

无论我选择什么颜色或亮度,状态栏的标题区域都显示白色文本.我的整个 tmux 配置文件在这里:https://github.com/zanshin/dotfiles/blob/master/tmux/tmux.conf

No matter what colors or brightness I select the title area of the status bar shows white text. My entire tmux configuration file is here: https://github.com/zanshin/dotfiles/blob/master/tmux/tmux.conf

推荐答案

如果多次设置一个选项,最后一个值将是使用的那个.

If you set an option multiple times, the last value will be the one used.

您需要为每个选项设置一次或在每个选项的第二个和后续设置命令中使用 -a.

You need to set each option once or use -a on the second and subsequent set commands for each option.

这篇关于如何在 tmux 2.9a 中设置窗口标题颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆