home-manager/tests/modules/programs/thefuck/integration-enabled.nix

24 lines
461 B
Nix
Raw Normal View History

2023-10-01 16:41:55 +02:00
{ ... }:
{
programs = {
thefuck.enable = true;
bash.enable = true;
zsh.enable = true;
};
test.stubs.thefuck = { };
nmt.script = ''
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(@thefuck@/bin/thefuck '"'"'--alias'"'"')"'
2023-10-01 16:41:55 +02:00
assertFileExists home-files/.zshrc
assertFileContains \
home-files/.zshrc \
'eval "$(@thefuck@/bin/thefuck '"'"'--alias'"'"')"'
2023-10-01 16:41:55 +02:00
'';
}