-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Completion support in nix-shell #26031
Comments
Just to clarify, you want completion for commands within I wonder if we could have an output called something like "completion" that would use paths I have this in my
You should be able to use that in nix-shell I think (replacing The problem is it's Bash-only. ZSH is alot easier:
If you want those to work "by default" I think they would need to be in nix-profile: https://github.com/NixOS/nix/blob/fb2dd3210072a03526e881cd2547cf4c2df4ba52/scripts/nix-profile.sh.in#L84. Of course the |
This does the trick and uses the lazy loading method of adding bash completions. I suppose we could add this as a default shell hook in stdenv, or possibly in stdenv itself. I can imagine that in rare cases, build scripts use this variable, so it would fix those. I suppose it should be On more thing is that we should probably check the existence of Perhaps someone who's more familiar with the cross compiling stuff can chip in? |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
important to me :) |
I marked this as stale due to inactivity. → More info |
Almost done. I've added support for file based shells in #103501. Remember to use Will write a Nix pr for the nix-shell command line. |
I marked this as stale due to inactivity. → More info |
Nixpkgs supports completion for If completions don't work for you, it's more effective to open a new issue. |
We do have nice completion support for
nix-env
-installed programs, but as someone who primarily usesnix-shell
, I'm sad to not get completions, even thoughman
pages and other niceties work. Does anyone know what it would take to make completions work?The text was updated successfully, but these errors were encountered: