1. 程式人生 > >mac修改配色方案[轉載]

mac修改配色方案[轉載]

get pro bag sim mes blog uri https style

參考博客:

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 DarkSolarized Dark.itermcolors

設置:

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

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

重啟iterm文件。

mac修改配色方案[轉載]