Hacker News new | ask | show | jobs
by sidju 857 days ago
You wouldn't believe how often I run `bat` to quickly read some source code. It is nearly constantly open on my computer.

It is just so easy to run, easy to use, can open multiple files and is so readable. Why would I open an editor when I'm already in a terminal and it's right there?

2 comments

I believe you. :) That’s I guess what most of us do; quickly look at a single file. Not really concatenating multiple files.

So the feature makes perfect pragmatic sense.

I wrote a little script for that, and I am surprised now at how often I use it instead of opening an editor:

https://drive.google.com/file/d/1l13UdgRJy2XvEzI4bYYFU09MW20...

I use `cat $(which ...)`. Makes sense to have a dedicated script for it. Cheers