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:
parent
9fe79591c1
commit
2af7c78b7b
3 changed files with 23 additions and 0 deletions
|
|
@ -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)"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue