1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 20:11:06 +01:00

thefuck: add module

This commit is contained in:
ilaumjd 2023-10-01 21:41:55 +07:00 committed by Robert Helgesson
parent b0e0d82696
commit 2874c6fce6
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
7 changed files with 95 additions and 0 deletions

View file

@ -139,6 +139,7 @@ import nmt {
./modules/programs/starship
./modules/programs/taskwarrior
./modules/programs/texlive
./modules/programs/thefuck
./modules/programs/tmate
./modules/programs/tmux
./modules/programs/topgrade

View file

@ -0,0 +1,4 @@
{
thefuck-integration-enabled = ./integration-enabled.nix;
thefuck-integration-disabled = ./integration-disabled.nix;
}

View file

@ -0,0 +1,18 @@
{ ... }:
{
programs = {
thefuck.enable = true;
thefuck.enableBashIntegration = false;
thefuck.enableZshIntegration = false;
bash.enable = true;
zsh.enable = true;
};
test.stubs.thefuck = { };
nmt.script = ''
assertFileNotRegex home-files/.bashrc '@thefuck@/bin/thefuck'
assertFileNotRegex home-files/.zshrc '@thefuck@/bin/thefuck'
'';
}

View file

@ -0,0 +1,23 @@
{ ... }:
{
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)"'
'';
}