mac修改配色方案[转载]

参考博客:

http://blog.csdn.net/zly9923218/article/details/51967923

vim ~/.bash_profile

插入代码:

#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='[33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$ '

#enables colorfor iTerm
export TERM=xterm-color

执行:

source ~/.bash_profile

官网提供的配色方案:iTerm2-Color-Schemes,根据图片显示风格下载喜欢的配色,

我用的是solarized,即iterm2-colors-solarized下的Solarized DarkSolarized Dark.itermcolors

设置:

preference->profiles->Terminal->xterm-new

                   ->colors->LoadPresents,import配色方案文件

重启iterm文件。

原文地址:https://www.cnblogs.com/yiruparadise/p/7264310.html