Closed xzfc closed 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.
Complete command names from
programs.sqlite
database.Complete command arguments. E.g.
nix run nixpkgs.cowsay -c cowsay -⭾
will show you cowsay-related completions.Small fix: use
_command_names -e
instead of_command_names
. This will filter out shell aliases, shell functions, etc.