mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +00:00
Calls yazi as `command yazi`, allowing to use "yazi" as `shellWrapperName`. Also defines the wrapper with `programs.fish.functions` instead of `interactiveShellInit`.
18 lines
358 B
Nix
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}
|
|
'';
|
|
}
|