简体   繁体   中英

Coloured output and VIM editor in msysgit

I've been setting up a new Windows 7 64-bit PC. I've installed msysgit git version 1.9.0.msysgit.0 , placing both git and git BASH on my normal Windows path. I've also installed ansicon, and am running the 64-bit version.

This is, as near as I can tell, identical to the setup on my old PC; but on the new system I'm not getting coloured output from git (I am getting it from other tools, like rspec), and git is not using a default editor. On my old PC I get coloured output, and git fires up vim when it wants an editor.

I can't immediately find any config differences (the old PC shows blank for git config --global --get color.ui and git config global --get core.editor , and %EDITOR% is not set).

Any suggestions what might be different?

Aha, found it. I needed to change the value of the TERM environment variable.

Setting TERM=msys sorted everything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM