2.home-manager/tests/modules/programs/thefuck/integration-enabled-instant.nix
Coolio 4d2d322317
thefuck: Add alias option (#6909)
Added an alias option supported by bash, zsh, fish, and nushell integration
2025-04-25 19:39:49 -05:00

22 lines
531 B
Nix

{
programs = {
thefuck = {
enable = true;
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)"'
'';
}