-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
nh shell
and nh run
?
#162
Comments
I don't want to implement that unless we can get completion support, and I don't have the bandwidth to look into implementing that. |
I understand that. I may have a look at implementing this myself, but if anyone else reads this feel free to take it on. Playing around a bit, it seems feasible to just shell out to nix eval. You could search with eval directly: |
From a quick search, this seems to be the way to implement it: https://docs.rs/clap_complete/latest/clap_complete/engine/struct.ArgValueCompleter.html |
Also note that after #151, nh will not be a flake-first tool, but rather support |
It's been a major annoyance for a long time with
nix-command
that you always have to write out the name of the flake explicitly when usingnix shell
ornix run
.The popular nix-dram patches this functionality in, and it was requested for addition to lix, but as this is a breaking change, it was rejected.
Maybe this would be a good functionality to add to nh?
Being able to simply run
nh shell cargo gcc
would be a QoL improvement and not too difficult to implement.nh search
already always uses nixpkgs, so there's less of an argument to be made against this being incompatible with other flakes.The text was updated successfully, but these errors were encountered: