mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
thefuck: add nushell integration
This commit is contained in:
parent
9fe79591c1
commit
2af7c78b7b
3 changed files with 23 additions and 0 deletions
|
|
@ -6,8 +6,10 @@
|
|||
thefuck.enableBashIntegration = false;
|
||||
thefuck.enableFishIntegration = false;
|
||||
thefuck.enableZshIntegration = false;
|
||||
thefuck.enableNushellIntegration = false;
|
||||
bash.enable = true;
|
||||
zsh.enable = true;
|
||||
nushell.enable = true;
|
||||
};
|
||||
|
||||
test.stubs.thefuck = { };
|
||||
|
|
@ -16,5 +18,6 @@
|
|||
assertFileNotRegex home-files/.bashrc '@thefuck@/bin/thefuck'
|
||||
assertPathNotExists home-files/.config/fish/functions/fuck.fish
|
||||
assertFileNotRegex home-files/.zshrc '@thefuck@/bin/thefuck'
|
||||
assertFileNotRegex home-files/.config/nushell/config.nu '@thefuck@/bin/thefuck'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
bash.enable = true;
|
||||
fish.enable = true;
|
||||
zsh.enable = true;
|
||||
nushell.enable = true;
|
||||
};
|
||||
|
||||
test.stubs.thefuck = { };
|
||||
|
|
@ -33,5 +34,10 @@
|
|||
assertFileContains \
|
||||
home-files/.zshrc \
|
||||
'eval "$(@thefuck@/bin/thefuck '"'"'--alias'"'"')"'
|
||||
|
||||
assertFileExists home-files/.config/nushell/config.nu
|
||||
assertFileContains \
|
||||
home-files/.config/nushell/config.nu \
|
||||
'alias fuck = @thefuck@/bin/thefuck $"(history | last 1 | get command | get 0)"'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue