mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 19:13:27 +00:00
27 lines
600 B
Nix
27 lines
600 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'"'"')"'
|
||
|
'';
|
||
|
}
|