razzi.abuissa.net

Razzi's guide to bat

bat is like cat but it has extra features like syntax highlighting and paging.

$ bat README.md

I personally like the syntax highlighting but don’t feel the need for showing the filename nor the line numbers; fortunately there’s a config mode to disable this.

$ bat --plain index.html

I want bat to have this behavior by default, so I checked where it expects config like so:

$ bat --config-file
/Users/razzi/.config/bat/config

Then I edited that file to have the option:

$ cat (bat --config-file)
--plain

Now that option is the default.