1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/programs/yazi/fish-integration-enabled.nix
Ismaïl Senhaji 4481a16d1a
yazi: improve fish integration
Calls yazi as `command yazi`, allowing to use "yazi" as
`shellWrapperName`. Also defines the wrapper with
`programs.fish.functions` instead of `interactiveShellInit`.
2025-01-21 18:28:58 +01:00

18 lines
358 B
Nix

{ config, ... }:
{
programs.fish.enable = true;
programs.yazi = {
enable = true;
shellWrapperName = "yy";
enableFishIntegration = true;
};
test.stubs.yazi = { };
nmt.script = ''
assertFileContent home-files/.config/fish/functions/${config.programs.yazi.shellWrapperName}.fish \
${./fish-integration-expected.fish}
'';
}