How can I configure Mac Terminal to have color ls output?

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5


Edit:

~/.bash_profile

or

~/.profile

and add the following two lines:

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

you can use this if you are using a black background :

export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx

You can add

alias ls='ls -G'

to your ~/.bash_profile to get colored ls output.


我发现我所需要的只是将它添加到我的~/.bash_profile

export CLICOLOR=1
链接地址: http://www.djcxy.com/p/87974.html

上一篇: 终端中的Git commit会打开VIM,但不能回到终端

下一篇: 我怎样才能配置Mac终端有颜色ls输出?