macbook 终端颜色配置

来源:互联网 发布:oracle数据库oblob操作 编辑:程序博客网 时间:2024/05/21 01:54
    次文章方法只满足简单颜色配置方案,且只针对单个用户生效。


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代码  收藏代码
syntax enable
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"






1 0