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='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ ' #enables colorfor iTerm export TERM=xterm-color
执行:
source ~/.bash_profile
官网提供的配色方案:iTerm2-Color-Schemes,根据图片显示风格下载喜欢的配色,
我用的是solarized,即iterm2-colors-solarized下的
Solarized Dark
Solarized Dark.itermcolors
设置:
preference->profiles->Terminal->xterm-new
->colors->LoadPresents,import配色方案文件
重启iterm文件。
若流年有爱,就心随花开