News for hackers. Stuff that matters.
Re:Bat: Cat with Syntax Highlighting by tclancy on Tuesday October 07, 2025 @04:32PM (#45508463)
Assuming perfect memory and you never make typos they are exactly the same. For most installs. Or distros. Probably.
Re:Bat: Cat with Syntax Highlighting by GodelNumbering on Tuesday October 07, 2025 @04:42PM (#45508581)
You don't need to memorize

alias bat='f(){ cat "$1" | highlight --force -O xterm256 | less -SRNI; }; f'

Re:Bat: Cat with Syntax Highlighting by lynndotpy on Tuesday October 07, 2025 @05:49PM (#45509349)
For all the other issues people have pointed out, this assumes you have `highlight` installed.
Re:Bat: Cat with Syntax Highlighting by yjftsjthsd-h on Tuesday October 07, 2025 @07:28PM (#45510247)
As opposed to having bat installed?
Re:Bat: Cat with Syntax Highlighting by yjftsjthsd-h on Tuesday October 07, 2025 @04:44PM (#45508607)
> Assuming perfect memory and you never make typos they are exactly the same.

You can make an alias.

> For most installs. Or distros. Probably.

Comparing https://repology.org/project/bat-cat/packages vs https://repology.org/project/highlight/packages appears to show them with approximately equal availability. (Unless you're trying some other point, in which case I don't follow.)