bat, a Substitute cat Command
While watching Suz Hinton/noopkat’s Twitch stream today I noticed that when she ran the
cat command it looked a little different than what I was used to. It has some subtle styling to it I had never seen before. I found out from the #noopkrew that it was the
bat command, a substitute
cat command with some superpowers. I brew installed it immediately and set up an alias to replace
cat. Think of it as Apple’s Quick Look but for the command line. It does syntax highlighting for several filetypes including JSON and Markdown. It is also git aware and can show diffs in files. Amazing!!