我正在运行 Xubuntu 12.04,当我使用终端时,我从ls
. 但是在 tmux 中,ls 打印的所有内容都是白色的。不过,我知道我的 tmux 支持颜色,因为我在运行 vim 时会突出显示颜色语法。我的 ~/.tmux.conf 已经有这一行了:
set -g default-terminal "screen-256color"
Run Code Online (Sandbox Code Playgroud)
以下是一些环境变量(来自 tmux):
$ env | grep COLOR
LS_COLORS=di=34:ow=34
$ echo $TERM
screen-256color
Run Code Online (Sandbox Code Playgroud)
在 tmux 中如何让 ls 显示颜色?