macbook 終端顏色配置

    次文章方法只滿足簡單顏色配置方案,且只針對單個用戶生效。


1、終端顏色配置

    1.編輯 ~/.bash_profile, 加入以下代碼:

  1. Bash代碼  收藏代碼
    1. export CLICOLOR=1  
    2. export LSCOLORS=gxfxaxdxcxegedabagacad  
     
  2. source ~/.bash_profile
參考資料:http://goddy128.iteye.com/blog/537683

2、vim編輯顏色配置

1.編輯~/.vimrc , 加下代碼:

Bash代碼  收藏代碼
colorscheme murphy 
2. source  ~/.vimrc

   </pre><pre name="code" class="python">
3、git 顏色開啓

    git config --global color.diff auto

    git config --global color.status auto

   git config --global color.branch auto

4 、grep 顏色開啓

      環境變量設置

export GREP_OPTIONS="--color=auto"






發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章