4 ms·
Most tools that do formatted output, if they’re well-behaved, should try to detect if their output is a pipe and if so, disable formatting. Some examples that
by mplanchard 2y ago
Most tools that do formatted output, if they’re well-behaved, should try to detect if their output is a pipe and if so, disable formatting.
Some examples that I can think of off the top of my head (in addition to git) are ripgrep and jq, both of which do the right thing and strip formatting.
- knome 2y agorather they should detect that output is a terminal and enable the coloring