Files
home-manager/tests/modules/programs/thefuck/integration-enabled-instant.nix
Austin Horstman 8c3352d32f tests/thefuck: explicit stubbing
Avoid the removal alias exception

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
(cherry picked from commit 812b43b45d)
2025-06-24 13:54:33 -05:00

25 lines
622 B
Nix

{ config, ... }:
{
programs = {
thefuck = {
enable = true;
package = config.lib.test.mkStubPackage { outPath = "@thefuck@"; };
enableInstantMode = true;
};
bash.enable = true;
zsh.enable = true;
};
nmt.script = ''
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(@thefuck@/bin/thefuck --alias fuck --enable-experimental-instant-mode)"'
assertFileExists home-files/.zshrc
assertFileContains \
home-files/.zshrc \
'eval "$(@thefuck@/bin/thefuck --alias fuck --enable-experimental-instant-mode)"'
'';
}