我想让最后一个选择的窗口(带你去的那个:last-window
)在视觉上脱颖而出。默认情况下,它只是-
在名称后面标有一个不显眼的标记。
有没有办法设置状态行中最后一个窗口名称的属性,就像set-option window-status-current
当前窗口名称一样?
更新:Debian Wheezy(稳定版)和 Ubuntu 12.04 都有缺少必要选项的 tmux 1.6。但是有一个 backport 是 1.9。
解决方案是升级。
我认为可能存在版本不匹配或其他问题,但 jasonwryan 对于我的目的来说是在正确的轨道上。我正在使用 tmux v1.8,并且我在手册页中看到以下可用选项:
window-status-last-attr attributes
Set status line attributes for the last active window.
window-status-last-bg colour
Set status line background colour for the last active window.
window-status-last-fg colour
Set status line foreground colour for the last active window.
Run Code Online (Sandbox Code Playgroud)
您的一个例子~/.tmux.conf
:
set -g window-status-last-attr bold
set -g window-status-last-fg blue
Run Code Online (Sandbox Code Playgroud)
编辑:果然,这些选项是为 tmux v1.8 添加的。因此,这个答案仅适用于 tmux 版本 >=1.8。
编辑:Per jasonwryan,他的解决方案适用于 v1.9+。查看变更日志后,foo-{bg,fg,attr} 命令从 v1.9 开始已弃用,并将慢慢逐步淘汰。如果是 v1.9+,最好使用 jasonwryans 解决方案。
编辑:以流行的状态行实用程序的拉取请求的形式实现这一点powerline
。https://github.com/Lokaltog/powerline/pull/864。此拉取请求已被合并。
归档时间: |
|
查看次数: |
2359 次 |
最近记录: |