'Cygwin: color coding and branch info for git?
I just recently changed my client from Git Bash to Cygwin but I am missing color coding when I do git status for example and also the bash prompt doesn't include the current branch / rebase etc.
Does anyone know how to make Cygwin look like Git Bash?
Solution 1:[1]
It sounds like you just need to set up your .gitconfig for your cygwin shell to enable coloured output. Here is what I have in my ~/.gitconfig file (with which I get coloured markup in the output):
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
I think the most important line here is ui = true, which you can turn on straight from the command line if you wish:
git config --global color.ui true
Solution 2:[2]
Answer by @lee-netherton is correct.
For those using Windows Git-1.8.1.2-preview20130201 - I had to create a ~/.bashrc to enable color output from git status.
[~/.bashrc]
TERM=cygwin
export TERM
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | JJS |
