News for hackers. Stuff that matters.
Re:Colorize Your CLI by Morgangeek on Monday July 27, 2020 @01:56AM (#23962557)
I've also aliased cat to bat but it causes me issues when I redirect the output of cat (bat) without \cat to a file as then the file contains color codes that are not expected by other users and tools and cause some tools to not behave correctly,while the issue is invisible to me (unless reading the generated file with \cat)
Re:Colorize Your CLI by IggleSniggle on Monday July 27, 2020 @10:02AM (#23965159)
bat should not be doing that. It should perform exactly like cat when piped or redirected. At least it does for me, even if the text is colorized in a tty. Perhaps an issue with your pager settings? Dunno.