相关疑难解决方法(0)

终端颜色不起作用

我正在通过 OSX 的 SSH 访问 Ubuntu 10.04.2 LTS 服务器。最近颜色停止工作。我认为这是在我安装/排除 RVM 故障时发生的,但我并不乐观。

在 .bashrc 中,我取消了注释force_color_prompt=yes,当我运行时,env | grep TERM我得到TERM=xterm-color. 但是还是没有颜色。

有任何想法吗?谢谢!

这是输出 cat .bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace …
Run Code Online (Sandbox Code Playgroud)

command-line

34
推荐指数
2
解决办法
9万
查看次数

标签 统计

command-line ×1