Skip to contentSkip to conversation

Colorize output

DISCUSSION Nicolas 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Nicolas

author
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · Nicolas

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.