iTerm2 是mac os x系统中一款很好的终端,但是默认颜色很不爽,所以需要自己配色.之前查找了好多关于类似的文章,大部分是转载,而且还有问题,所以做了些修改. 首先,可以编辑 .bash_profile,输入命令:vim ~/.bash_profile.然后将如下代码输入进去: #enables colorin the terminal bash shell export export CLICOLOR=1 #sets up thecolor scheme for list export
#enables colorin the terminal bash shell export export CLICOLOR=1 #sets up thecolor scheme for list export export LSCOLORS=gxfxcxdxbxegedabagacad #sets up theprompt color (currently a green similar to linux terminal) export PS1='\[\033[01;32m\]\[emai
iterm2就不说了,Mac下非常好用的终端,这里就先谈谈如何给其增加配色,效果如下图 可以来这下载theme : http://iterm2colorschemes.com/ 1.先编辑你的profile来添加如下信息 : vim ~/.bash_profile # Set CLICOLOR if you want Ansi Colors in iTerm2 export CLICOLOR=1 # Set colors to match iTerm2 Terminal Colors expor