supercrabtree / k

k is the new l, yo
1.78k stars 123 forks source link

Suggest to install coreutils when running '-h' flag #105

Open oluckyman opened 3 years ago

oluckyman commented 3 years ago

Would be nice and helpful to suggest to install brew install coreutils to show human readable sizes when running k -h Now it shows

'numfmt' or 'gnumfmt' command not found, human readable output will not work.
    Falling back to normal file size output

But I did not notice this message at first, because it starts from esoteric sequence of symbols "numfmt", "gnumfmt", so my mind filtered this message out right away 😅 And even if I read, I'd have to google anyway, to figure out how to make it work. A message without unnecessary details that provides the solution will be more helpful, something like this:

Human readable output requires coreutils to work.
You can install it with homebrew: brew install coreutils