Open mweinelt opened 2 years ago
I need to do more research to modify the nixpkgs expression to "just do the right thing".
Until then in zsh you can put compdef nom-build=nix-build
in your zshrc.
For bash:
complete -F _nix_completion nom-build
I already started something https://github.com/hedning/nix-bash-completions/pull/16 but I can't remember if that fully worked or was half broken.
As of https://github.com/NixOS/nixpkgs/pull/163441 we have zsh completion support in nixpkgs.
For bash:
complete -F _nix_completion nom-build
I have just tried that command in a quick bash I started. That apparently didn’t work. Not sure what’s wrong.
I have just tried that command in a quick bash I started. That apparently didn’t work. Not sure what’s wrong.
Either bash-completion loads things async and you first need to load the nix completion function or my patch is really necessary. I have aliases nom to nix-build so everything just worked.
With the new bunch of commands introduced now:
nom-shell
nom build
nom develop
nom shell
There is more todo on completion.
The biggest regression from using plain nix is that we don't have tab completion anymore. Do we have someone who is familiar with that kind of thing to make
nom-build
feel more like a drop-in replacement fornix-build
?