次文章方法只滿足簡單顏色配置方案,且只針對單個用戶生效。
1、終端顏色配置
1.編輯 ~/.bash_profile, 加入以下代碼:
-
- export CLICOLOR=1
- export LSCOLORS=gxfxaxdxcxegedabagacad
- source ~/.bash_profile
2、vim編輯顏色配置
1.編輯~/.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"