bat, a Substitute cat Command

bat command markdown example

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!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s