nix-bash-completions
nix-bash-completions copied to clipboard
Avoid completion conflict with modern 'nix' CLI
[This supersedes https://github.com/hedning/nix-bash-completions/pull/21.]
Upstream nix (>=2.4) has completion for the modern 'nix' CLI, and the completion provided by nix-bash-completions cause a conflict that breaks completion:
$ nix build<TAB_TAB> # line gets erased
Fix it by not installing completion for 'nix', which lets Nix handle its own completions.
As a side effect, this breaks/removes completion for the experimental 'nix' commands in nix<=2.3, but hopefully there is no real use case for that anymore as even the latest NixOS version use nix>=2.8.
Fixes https://github.com/hedning/nix-bash-completions/issues/20.
Ping?
Ping. NixOS 22.05 has Nix 2.8.1, which means completing modern nix ...
is now broken. It would be great to have this PR landed and release a new version of nix-bash-completions :-)
@hedning: friendly ping
@ncfavier: friendly ping?
I want this as much as you do, but the maintainer is unresponsive. Perhaps it is time to add this patch in nixpkgs.
I want this as much as you do, but the maintainer is unresponsive. Perhaps it is time to add this patch in nixpkgs.
Oh, I guess I assumed you had commit rights based on this comment, and I realized I hadn't pinged you in this PR.
Ok, nixpkgs next.
https://github.com/NixOS/nixpkgs/pull/207224