这个话题与iPhone无关,不过我今天心血来潮突然想为终端加点颜色.
很简单,使用编辑器,比如vi打开~/.bash_profile,加入:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
但这些设置是什么意思呢?下面是解释:
首先LSCOLORS是十一对字母表示前景和背景颜色,按顺序是:
directory
symbolic link
socket
pipe
executable
block special
character special
executable with setuid bit set
executable with setgid bit set
directory writable to others, with sticky bit
directory writable to others, without sticky bit
字母代表的颜色:
a black
b red
c green
d brown
e blue
f magenta
c cyan
h light grey
A block black, usually shows up as dark grey
B bold red
C bold green
D bold brown, usually shows up as yellow
E bold blue
F bold magenta
G bold cyan
H bold light grey; looks like bright white
x default foreground or background
大家尽可以改成自己喜欢的颜色.