nix-community / nix-zsh-completions

ZSH Completions for Nix
BSD 3-Clause "New" or "Revised" License
228 stars 31 forks source link

nix run -c: complete command names and arguments #31

Closed xzfc closed 4 years ago

xzfc commented 4 years ago
olejorgenb commented 4 years ago

Very cool! I've tested and can't see any obvious problems, but I'll let @hedning have a look also before merging.

In the future it would be nice to have an option to fallback on a programs.sqlite from a channel while working on a nixpkgs checkout (neither the program names or package structure change that often). Probably using a zstyle and some heuristic to detect if the package set is nixpkgs.