1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00
home-manager/tests/modules/programs/fish/manpage.nix
Zhaofeng Li e3dded7a85
fish: Fix manpage completion generation with paths containing spaces (#6703)
Manual pages with spaces in their paths can lead to argument injection.
2025-03-25 13:13:52 -05:00

12 lines
274 B
Nix

{ lib, pkgs, ... }: {
config = {
programs.fish = { enable = true; };
home.packages = [
(pkgs.runCommand "manpage-with-space" { } ''
mkdir -p $out/share/man/man1
echo "It works!" >"$out/share/man/man1/hello -inject.1"
'')
];
};
}