3 ms·
That’s the same as bat:[1] one of the features is syntax highlighting. Kind of unexpected to find a concatenation program… which also does that. [1] https://gi
by avgcorrection 3y ago
That’s the same as bat:[1] one of the features is syntax highlighting. Kind of unexpected to find a concatenation program… which also does that.
[1] https://github.com/sharkdp/bat https://github.com/sharkdp/bat
- sidju 3y agoYou 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?
- avgcorrection 3y agoI 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.
- ykonstant 3y agoI 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/1l13UdgRJy2XvEzI4bYYFU09MW20oI-8n/view?usp=sharing https://drive.google.com/file/d/1l13UdgRJy2XvEzI4bYYFU09MW20...
- avgcorrection 3y agoI use `cat $(which ...)`. Makes sense to have a dedicated script for it. Cheers