home-manager/tests/modules/programs/atuin/bash.nix
2022-08-07 15:25:44 +02:00

23 lines
359 B
Nix

{ ... }:
{
programs = {
atuin.enable = true;
bash = {
enable = true;
enableCompletion = false;
};
};
test.stubs = {
atuin = { };
bash-preexec = { };
};
nmt.script = ''
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(@atuin@/bin/atuin init bash)"'
'';
}