As a terminal user, I’m pretty sure I use
cat command daily.
Today I learned about
cat clone with syntax highlighting and Git integration.
bat before the file/s you want to print
bat supports automatic paging, so if your file is too large for the screen it will automatically
pipe the output to
It can read from stdin and automatically determine the syntax, though you can always specify it
explicitly with the
on macOS with Homebrew
$ brew install bat
You can choose your favorite theme, out of the available options (
bat --list-themes), using
For more advanced configuration, search for the
--styleoption and its possible values.
-A / --show-allflag to highlight non-printable characters