nix-dev-home icon indicating copy to clipboard operation
nix-dev-home copied to clipboard

Sensible command-not-found handler

Open srid opened this issue 11 months ago • 1 comments

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
Image

srid avatar Mar 24 '25 18:03 srid

@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 ...

srid avatar Mar 24 '25 18:03 srid