Evaluating new(ish) command line tools

There are many new(ish) command line tools out there that seek to replace existing tools. That's fine by me. I saw a list of some so I checked them out a while ago.

ripgrep

This one is pretty good, but I don't use it because in my work I have found grep and git grep to be just fine. So there's no compelling reason for me to switch.

I would pick ripgrep over ag and ack based on past experience.

exa

This ls replacement commits what I consider to the cardinal sin of modern terminal programs: obsession with colours. The output from this is just a vomit rainbow, namely the output from --long. There are so many annotations that it's just confusing.

bat

While a nice idea, this one drives me crazy because the default setup prints colours that match the background of my terminal because it assumes I'm using dark mode. Yes, I can configure it, but it leaves a bad taste in my mouth when I first try it and I literally can't read the output.

fd

Another utility that seems alright but I've had no reason to start using. I've not found find to be slow enough to worry about for the time being.

hexyl

This is a hex viewer that outputs in colour, but seems to keep outputting in colour into a pipe which is just a no-no in my books.


The colour output of some of these is fine, but making it the default means that when I want to script things I will need to remember to always add the --color=never option (assuming it supports it) or using a "less advanced" tool that doesn't bother with colour at all. So I may need to use one tool for interactive use and another for scripting.

If the colour output was more useful I'd probably use them, but in most cases it isn't, which is why I don't use these tools, even though I do have them installed.

-- Geoff (comment@wozniak.ca)
2022-10-02T18:54:00-04:00