mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00: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 ];
|
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
|
xdg.dataFile."fish/home-manager_generated_completions".source = let
|
||||||
# paths later in the list will overwrite those already linked
|
# paths later in the list will overwrite those already linked
|
||||||
destructiveSymlinkJoin = args_@{ name, paths, preferLocalBuild ? true
|
destructiveSymlinkJoin = args_@{ name, paths, preferLocalBuild ? true
|
||||||
|
|
Loading…
Reference in a new issue