LogoJuan Manuel Allo Ron

Tip: Syntax Highlighting with BAT

By Juan Manuel Allo Ron on May 7, 2020

Terminal command cat is a standard tool to print file contents to the console. I use it all the time but recently I found bat and it changed my life!

bat will also print file contents but provides syntax highlighting. If you use Homebrew it is super easy to install:

brew install bat

Here is an example of how the output will look like compared to cat:

Enjoy!!


Catch up with me on X (twitter):@juan_allo

Coding
Development
Homebrew
Osx terminal
Programming
Quick tips
Tips

Share

X Facebook Y Combinator LinkedIn Reddit Email

---

Similar Articles

An image showing the output of the command man z

Tip: use Z

May 28, 2020
Aren’t you tired of always typing the same routes in the terminal? When I found z it changed my productivity. What’s z? A terminal command to help you quickly navigate across directories…
VirtualBox UI screenshot

Debugging IE11 with VirtualBox

May 12, 2020
A quick setup with virtualbox to test IE11
Two employees testing a web app

Thoughts on Snapshot Testing

Apr 14, 2020
Since I moved to react at work I have been using and trying different testing strategies and I wanted to share some thoughts and best practices around snapshot testing.

Tip: list NPM scripts

May 14, 2020
In this quick-tip I will show you how to list scripts from the terminal

@2024 Juan Manuel Allo Ron. All Rights reserved