次文章方法只满足简单颜色配置方案,且只针对单个用户生效。
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"
本文介绍如何配置终端、vim及git等工具的颜色显示,包括启用颜色显示、选择颜色方案等步骤,适用于个性化开发环境。

3844

被折叠的 条评论
为什么被折叠?



