定制MacOSX ls颜色

Posted by 4Aiur on 2010/04/06 in BSD |

定制MacOSX ls颜色

习惯了linux的ls颜色,不适应MacOSX终端中的ls颜色修改了ls颜色使用的默认环境变量,跟linux有些接近了。

首先增加一个

之后修改LSCOLORS环境变量

LSCOLORS from man ls:

LSCOLORS The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the fore- ground color and b is the background color. The default is “exfxcxdxbxegedabagacad”, i.e. blue foreground and default background for regular directories, black foreground and red background for setuid executables, etc.

linux颜色可以细化到后缀名,这一点做的很不错,下面是Linux的ls颜色控制变量

Tags:

Copyright © 2010-2017 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.

.