Skip to content

command-not-found to support NIX_AUTO_RUN_INTERACTIVE #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
evysgarden opened this issue Apr 8, 2025 · 1 comment
Open

command-not-found to support NIX_AUTO_RUN_INTERACTIVE #267

evysgarden opened this issue Apr 8, 2025 · 1 comment

Comments

@evysgarden
Copy link

there's currently no handling for NIX_AUTO_RUN_INTERACTIVE.
it would be nice to be prompted to run a command with nix-shell if it's not installed.

furthermore it could present a selection when several packages provide the same command.

@evysgarden
Copy link
Author

evysgarden commented Apr 8, 2025

Something like this would be nice

$ export NIX_AUTO_RUN_INTERACTIVE=1
$ chromium
The program 'chromium' is currently not installed. It is provided by
several packages.
1. ungoogled-chromium.out
2. chromium.out
Should the first output be used?
([Y]es | [number] | [n]one): 2
/nix/store/aaaaaaaaaaaaaaaaaaaaaaa-chromium-0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant