gpt4 book ai didi

git - rxvt/cygwin 下没有 git 配色方案

转载 作者:IT王子 更新时间:2023-10-29 01:06:04 26 4
gpt4 key购买 nike

在厌倦了默认的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com