Re:Bat: Cat with Syntax Highlighting
by b_e_n_t_o_n on Tuesday October 07, 2025 @03:55PM
(#45508016)
and rsync works fine for people too, I guess that's why nobody uses Dropbox
[ Parent
| on HN ]
Re:Bat: Cat with Syntax Highlighting
by yjftsjthsd-h on Tuesday October 07, 2025 @04:10PM
(#45508197)
Dropbox and rsync do different things. It looks like this does essentially the same thing.
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'
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.)
Re:Bat: Cat with Syntax Highlighting
by inopinatus on Tuesday October 07, 2025 @05:24PM
(#45509078)
I don’t know if it still uses librsync but for a long time Dropbox was based directly upon it.
Whether this proves or disproves anything in re syntax highlighting utilities I leave as an exercise.
Re:Bat: Cat with Syntax Highlighting
by b_e_n_t_o_n on Tuesday October 07, 2025 @06:13PM
(#45509579)
It's a reference to this:
Re:Bat: Cat with Syntax Highlighting
by yjftsjthsd-h on Tuesday October 07, 2025 @08:37PM
(#45510695)
I know. But that doesn't make it accurate. And in broader strokes, I'm not fond of that thread/comment being used to pretend that all new and shiny things are better than what came before. Sometimes the new thing is barely more than a coat of paint on the existing thing.