1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00
home-manager/tests/modules/programs/thefuck/integration-enabled-instant.nix
2024-09-08 23:32:19 +02:00

26 lines
560 B
Nix

{ ... }:
{
programs = {
thefuck = {
enable = true;
enableInstantMode = 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 --enable-experimental-instant-mode)"'
assertFileExists home-files/.zshrc
assertFileContains \
home-files/.zshrc \
'eval "$(@thefuck@/bin/thefuck --alias --enable-experimental-instant-mode)"'
'';
}