3 ms·
> That's a pretty niche case I don't entirely agree. When I do want colour (generally because I've taken the time to configure the program suitably for it), th
by kps 3y ago
> That's a pretty niche case
I don't entirely agree. When I do want colour (generally because I've taken the time to configure the program suitably for it), then I usually still want the colour when I pipe its output through a pager. `diff` is the canonical example.
Edit: Another comment¹ points out pipetty² as a workaround, so I learned something useful today.
¹ https://news.ycombinator.com/item?id=36102160 https://news.ycombinator.com/item?id=36102160
² https://github.com/kilobyte/colorized-logs https://github.com/kilobyte/colorized-logs