News for hackers. Stuff that matters.
Re:fd, xargs, bat = quick document review by rwmj on Sunday February 25, 2024 @10:36AM (#39501607)
Sort of. Setting the LESSOPEN environment variable will filter less input through that, which could do syntax highlighting (if you use less -r).

The default (/usr/bin/lesspipe.sh, shipped with less) isn't very clever. It can uncompress files in some common formats and open images, but isn't very smart and doesn't handle markdown or code of any kind as far as I can tell.

There are no comments on this comment yet.