News for hackers. Stuff that matters.
Re:Bat: Cat with Syntax Highlighting by spookie on Tuesday October 07, 2025 @04:01PM (#45508098)
I call cat when I need to pipe or copy something, and just bat if I wanna read it myself. I find this as a good compromise, I like how bat formats things.

Your solution would be ok with an alias as well, so thanks. Might try it just so I dont need yet another program lying around

Re:Bat: Cat with Syntax Highlighting by seedie on Tuesday October 07, 2025 @04:19PM (#45508308)
You can still pipe bat output as it falls back to unformated output when it detects a non-interactive terminal. https://github.com/sharkdp/bat?tab=readme-ov-file#file-conca...