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:
parent
a3b778e672
commit
8419dfd39d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue