If bat looks appealing to you and you happen to be a Vim user, you might want to consider running view /path/to/file instead of bat. It'll open any file as readonly in Vim, with all your favorite plugins like Git integration present. Instead of piping to | less, you could also pipe to | view -. You may have to enter something like :set syntax=json if the syntax isn't autodetected based on content, although there's probably a simple setting or plugin to enable autodetection.
If you're not a Vim user and you want something that works with zero configuration, bat seems like a good choice!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If
batlooks appealing to you and you happen to be a Vim user, you might want to consider runningview /path/to/fileinstead ofbat. It'll open any file as readonly in Vim, with all your favorite plugins like Git integration present. Instead of piping to| less, you could also pipe to| view -. You may have to enter something like:set syntax=jsonif the syntax isn't autodetected based on content, although there's probably a simple setting or plugin to enable autodetection.If you're not a Vim user and you want something that works with zero configuration,
batseems like a good choice!