1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 05:47:29 +02:00

broot: Add nushell integration (#4714)

Add additional config flag `enableNushellIntegration` in broot.nix to
setup broot/br for nushell.
This commit is contained in:
Tom Cammann 2023-12-04 07:57:35 +00:00 committed by Mikilio
parent b19271051e
commit a9d96c3f51
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -175,6 +175,14 @@ in {
'';
};
enableNushellIntegration = mkOption {
default = true;
type = types.bool;
description = ''
Whether to enable Nushell integration.
'';
};
package = mkOption {
type = types.package;
default = pkgs.broot;
@ -226,5 +234,8 @@ in {
programs.zsh.initExtra = mkIf cfg.enableZshIntegration (shellInit "zsh");
programs.fish.shellInit = mkIf cfg.enableFishIntegration (shellInit "fish");
programs.nushell.extraConfig =
mkIf cfg.enableNushellIntegration (shellInit "nushell");
};
}