mirror of
https://github.com/nix-community/home-manager
synced 2024-12-29 05:09:47 +01:00
2ca2163ece
Also do a slight code cleanup.
23 lines
461 B
Nix
23 lines
461 B
Nix
{ ... }:
|
|
|
|
{
|
|
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'"'"')"'
|
|
|
|
assertFileExists home-files/.zshrc
|
|
assertFileContains \
|
|
home-files/.zshrc \
|
|
'eval "$(@thefuck@/bin/thefuck '"'"'--alias'"'"')"'
|
|
'';
|
|
}
|