1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-20 10:09:45 +01:00

fish: enable manpage completion

This patch follows a similar patch[1] in nixpkgs. With this patch,
fish can complete manpages for programs installed through
home-manager, e.g., using home.packages.

[1]: https://github.com/NixOS/nixpkgs/pull/91794
This commit is contained in:
linj 2022-05-29 13:08:21 +08:00 committed by Robert Helgesson
parent a3b778e672
commit 8419dfd39d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -285,6 +285,9 @@ in {
{
home.packages = [ cfg.package ];
# Support completion for `man` by building a cache for `apropos`.
programs.man.generateCaches = mkDefault true;
xdg.dataFile."fish/home-manager_generated_completions".source = let
# paths later in the list will overwrite those already linked
destructiveSymlinkJoin = args_@{ name, paths, preferLocalBuild ? true