【问题标题】:No color scheme in tmux 2.1tmux 2.1 中没有配色方案
【发布时间】:2018-03-20 09:53:54
【问题描述】:

如果我从我的终端echo $TERM,我得到rxvt-unicode-256colortput colors 显示256。我喜欢我在 .Xresources 文件中定义的自定义配色方案。但是,当我启动 tmux -2 时,情况发生了变化。 echo $TERM 显示 tmux-256colortput colors 仍然显示 256,但所有文本都是单色的,除非我在 vim 中......这更奇怪,因为 vim 中的配色方案(在 tmux 内部)不同于我的常规终端 (rxvt) 中 vim 的配色方案。

我目前在 ~/.tmux.conf 中只有一行是 set -g default-terminal "tmux-256color"

有人可以帮我把这两个排成一排吗?

【问题讨论】:

  • 我通过默认的 Ubuntu 16.04 repos 使用 2.1 版

标签: vim ubuntu-16.04 tmux rxvt urxvt


【解决方案1】:

也许你的意思

set -g default-terminal "tmux-256color"

而不是

set -g default-termainal "tmux-256color"

【讨论】:

  • 你是对的......一定是输入得太快了,因为“终端”确实是我的 .conf 文件中的内容。我刚刚更新了原帖;感谢您指出这一点。
猜你喜欢
  • 2021-06-19
  • 2014-01-03
  • 1970-01-01
  • 2016-04-02
  • 2014-11-07
  • 2011-05-10
  • 2014-05-31
  • 2012-04-26
  • 2023-03-11
相关资源
最近更新 更多