1
jsfaint 2015 年 1 月 12 日
没有颜色是你远端的机器的设置问题啊
请自行alias ls="ls --clolor" |
3
NemoAlex 2015 年 1 月 12 日
export CLICOLOR="xterm-color"
export LSCOLORS="gxfxcxdxbxegedabagacad" |
4
lululau 2015 年 1 月 12 日
很有可能和 terminal type 有关
echo $TERM |
6
lululau 2015 年 1 月 12 日
@fasling 你用 xshell 连接到 remote host, 在 remost host 上执行 echo $TERM,假设输出为 abc, 那么然后在 iTerm2 里执行:
TERM=abc ssh username@remote_host |
7
lululau 2015 年 1 月 12 日 我记得有的发行版里有类似这样的判断:
if [ "$TERM" = xterm ] then alias ls='ls --color' fi |