threads / discuss / 35296

Colorize output

Subject: Colorize output

## tl;dr

2 messages between Nov 7, 2013 and Nov 7, 2013.

replies: 1people: 2as markdown or json

Nicolas· Nov 7, 2013, 18:10 UTC · lore
Hello,
I’m developping a git command in shell and I would like colorize the output.
I don’t find anything in git-sh-setup.
What is the best way for don’t reinvent the wheel?
Thanks in advance.

Best regards. Nicolas.

John Keeping· Nov 7, 2013, 18:32 UTC · re: Nicolas · lore

Re: Colorize output

On Thu, Nov 07, 2013 at 07:10:11PM +0100, Nicolas wrote:
Show 5 quoted lines
> I’m developping a git command in shell and I would like colorize the output.
> 
> I don’t find anything in git-sh-setup.
> 
> What is the best way for don’t reinvent the wheel?

I normally use "git config --get-color ..." either with standard colors if my command is close to a standard command or with my own config keys and sensible defaults.

← back to recent threads