Allows falling back to a package from nixpkgs if the entered command doesn't exist.
This works OK but as far as I can tell, it's impossible to stop Nushell from outputting the underlying error message after the hook runs…
LSXN66FT2WHIINRJM4DM2DBJVFZ2XK77D2JRC665ECG4N32ITTXQC $env.config.hooks.command_not_found = {|c|try {print $"(ansi purple)[FALLBACK](ansi rst) Command not found '($c)'"print $"(ansi purple)[FALLBACK](ansi rst) Trying with comma."let pkg = ($c | str trim)let pkgs = (comma --print-packages ($pkg))if ($pkgs | str downcase | str contains "no packages") { null }comma --ask ($pkg)null} catch { null }}