==最基本的颜色修改==
将下面的代码内容copy到.bash_profile中,最基本的颜色配置就有了。
#enables colorin the terminal bash shell export
export CLICOLOR=1
#sets up thecolor scheme for list export
export LSCOLORS=gxfxcxdxbxegedabagacad
#sets up the prompt color (currently a green similar to linux terminal)
export PS1=’\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$’
然后执行代码语句
source ~/.bash_profile
==iterm2风格使用==
Solarized配色风格(me选)
http://ethanschoonover.com/solarized
github上的iterm2风格
https://github.com/baskerville/iTerm-2-Color-Themes
==生效==
需要生效的办法有很多种,可以通过.bashrc文件
需要在.bash_profile添加如下代码
source .bashrc