1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-22 18:29:39 +01:00

thefuck: add nushell integration

This commit is contained in:
Alvaro Fresquet 2024-04-29 09:53:42 +02:00 committed by GitHub
parent 9fe79591c1
commit 2af7c78b7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 0 deletions

View file

@ -32,6 +32,14 @@ with lib;
Whether to enable Zsh integration.
'';
};
enableNushellIntegration = mkOption {
default = true;
type = types.bool;
description = ''
Whether to enable Nushell integration.
'';
};
};
config = let
@ -66,5 +74,11 @@ with lib;
};
programs.zsh.initExtra = mkIf cfg.enableZshIntegration shEvalCmd;
programs.nushell = mkIf cfg.enableNushellIntegration {
extraConfig = ''
alias fuck = ${cfg.package}/bin/thefuck $"(history | last 1 | get command | get 0)"
'';
};
};
}