作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
在厌倦了默认的 cygwin 终端后,我决定尝试 rxvt
。一切似乎都很好,除了一件事:我的 git 存储库的配色方案停止工作。
顺便说一下,vim
编辑器等其他配色方案在 rxvt
下工作正常。我也跑了这个 script以确保启用 256 种颜色。
我的 ~/.gitconfig
看起来像这样:
[user]
name = xyz
email = xyz@abc.com
[color]
diff = auto
status = auto
branch = auto
[core]
autocrlf = false
最佳答案
如果将 ~/.gitconfig 颜色部分中的所有设置从“自动”更改为“始终”,那么即使在 rxvt/mintty 中,MSYSGit 着色也能正常工作
[color]
ui = always
status = always
branch = always
diff = always
interactive = always
关于git - rxvt/cygwin 下没有 git 配色方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4185918/
我是一名优秀的程序员,十分优秀!