Sensible command-not-found handler
Unfortunately, the current one suggests imperative install through nix-env -iA (see screenshot). We should instead have it recommend nix shell nixpkgs#<name> -c <name> or equivalent.
cf.
- https://github.com/srid/nixos-config/pull/72
- https://github.com/gvolpe/nix-index/pull/1
- https://github.com/nix-community/nix-index/issues/210
@gvolpe Is there something we need to do in order to upstream your fork?
https://github.com/nix-community/nix-index/issues/210#issuecomment-2556925649
For anyone interested, I got a few enhancements here: gvolpe#1
If there's enough interest, I could try to upstream it here. I've only managed to test it in the Fish shell.
I suppose it is a matter of taking your changes and opening a PR in upstream? Perhaps somebody would be interested in contributing that if you don't have the time for that now. Just trying to see what's needed here as next steps ...