x*********s 发帖数: 5554 | 1 【 以下文字转载自 Apple 讨论区 】
发信人: xrhinoceros (elegant rhino), 信区: Apple
标 题: 问个terminal的问题
发信站: BBS 未名空间站 (Tue May 11 15:27:42 2010, 美东)
我在terminal下ssh 到别的机器, 视觉效果正常, 目录/文件/链接颜色各不相同, 但是
再从
这台机器ssh到另外的机器, 颜色就都没有了. 在windows下面用putty,就没有这种事情
发生
,所以应该是我mac下面terminal的配置问题.
我在bash下面添加了
export CLICOLOR=1
export LSCOLORS=gxfxdxcxbxedabagacad
没有用, 依旧是本机和第一次ssh的机器正常, 再加一层的话就有没有颜色了.
请教 | D******y 发帖数: 3780 | 2 what OS do you run on your second and third computer?
【在 x*********s 的大作中提到】 : 【 以下文字转载自 Apple 讨论区 】 : 发信人: xrhinoceros (elegant rhino), 信区: Apple : 标 题: 问个terminal的问题 : 发信站: BBS 未名空间站 (Tue May 11 15:27:42 2010, 美东) : 我在terminal下ssh 到别的机器, 视觉效果正常, 目录/文件/链接颜色各不相同, 但是 : 再从 : 这台机器ssh到另外的机器, 颜色就都没有了. 在windows下面用putty,就没有这种事情 : 发生 : ,所以应该是我mac下面terminal的配置问题. : 我在bash下面添加了
| b***d 发帖数: 186 | 3 $ echo $TERM
返回啥结果
$ TERM=ansi export TERM
试试
【在 x*********s 的大作中提到】 : 【 以下文字转载自 Apple 讨论区 】 : 发信人: xrhinoceros (elegant rhino), 信区: Apple : 标 题: 问个terminal的问题 : 发信站: BBS 未名空间站 (Tue May 11 15:27:42 2010, 美东) : 我在terminal下ssh 到别的机器, 视觉效果正常, 目录/文件/链接颜色各不相同, 但是 : 再从 : 这台机器ssh到另外的机器, 颜色就都没有了. 在windows下面用putty,就没有这种事情 : 发生 : ,所以应该是我mac下面terminal的配置问题. : 我在bash下面添加了
| x*********s 发帖数: 5554 | 4 两个都是rhel4.5, 第二次ssh的机器一个是suse9一个是rhel4.5
我觉得不是别人机器的问题, 因为用windows+putty就不存在这个问题
是我自己terminal设置的问题, 但我又不知道在哪里改
【在 D******y 的大作中提到】 : what OS do you run on your second and third computer?
| x*********s 发帖数: 5554 | 5 echo $TERM ==> xterm-color
改成ansi也不行~
不管用 | D******y 发帖数: 3780 | 6 i thought you asked this in apple board, so
there is at least one computer is a mac.
why 2 rhel, 1 suse?
did you try ls --color=auto
【在 x*********s 的大作中提到】 : 两个都是rhel4.5, 第二次ssh的机器一个是suse9一个是rhel4.5 : 我觉得不是别人机器的问题, 因为用windows+putty就不存在这个问题 : 是我自己terminal设置的问题, 但我又不知道在哪里改
| x*********s 发帖数: 5554 | 7 本机是mac os , ssh 到rhel的机器, 此时颜色正常, 再从这才rhel4.5的机器ssh 到别
的机器, 无论什么系统, 都没有五颜六色.
如果从windows+putty 去做这两个ssh的操作, 那么都有颜色.
【在 D******y 的大作中提到】 : i thought you asked this in apple board, so : there is at least one computer is a mac. : why 2 rhel, 1 suse? : did you try ls --color=auto
| wy 发帖数: 14511 | 8 then try try iTerm
【在 x*********s 的大作中提到】 : 本机是mac os , ssh 到rhel的机器, 此时颜色正常, 再从这才rhel4.5的机器ssh 到别 : 的机器, 无论什么系统, 都没有五颜六色. : 如果从windows+putty 去做这两个ssh的操作, 那么都有颜色.
| x*********s 发帖数: 5554 | 9
这个可以了
谢谢
【在 D******y 的大作中提到】 : i thought you asked this in apple board, so : there is at least one computer is a mac. : why 2 rhel, 1 suse? : did you try ls --color=auto
| D******y 发帖数: 3780 | 10 just create an alias in your .bashrc then.
it should be your shell's settings instead of your terminal settings.
baozi plz
【在 x*********s 的大作中提到】 : : 这个可以了 : 谢谢
| x*********s 发帖数: 5554 | 11 我知道把他做成alias
我看看我有没有包子, 貌似我从来就没有过包子
【在 D******y 的大作中提到】 : just create an alias in your .bashrc then. : it should be your shell's settings instead of your terminal settings. : baozi plz
| x*********s 发帖数: 5554 | 12 付了~
【在 D******y 的大作中提到】 : just create an alias in your .bashrc then. : it should be your shell's settings instead of your terminal settings. : baozi plz
| D******y 发帖数: 3780 | 13 saw it. rhino very da fang. gave me 90% of his wallet. zan
【在 x*********s 的大作中提到】 : 付了~
|
|