为什么不Git的颜色iTerm2显示 [英] Why don't git colors show up in iTerm2

查看:499
本文介绍了为什么不Git的颜色iTerm2显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有我的gitconfig设置做的颜色。在终端它的伟大工程,看起来很好。

So I have my gitconfig setup to do colors. In Terminal it works great, looks fine.

在iTerm2,但颜色不会出现在我的gitconfig水平,除非我设置的git的逆特性。然后,他们出现,但谁反正喜欢颠倒的颜色?

In iTerm2, however, the colors don't appear for my gitconfig at all unless I set the reverse property for git. Then they appear but who likes reversed colors anyways?

为什么会出现这种情况,我该如何解决这个问题?

Why does this happen and how can I fix it?

推荐答案

您应该检查的iTerm是否正确设置TERM变量。在我的系统,我看到:

You should check that iTerm is setting the TERM variable correctly. On my system, I see:

echo $TERM
xterm-256color

和在git的工作颜色。这是根据报告终端类型中的iTerm的preferences属性设置。

And have working colours in git. This is set according to the 'Report Terminal Type' property in iTerm's preferences.

您也应该检查颜色选项卡,并确保对比度滑块是不是一路的权利。

You should also check the Colors tab, and ensure the contrast slider isn't all the way to the right.

这篇关于为什么不Git的颜色iTerm2显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆