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 GitHub
parent e504e8d01f
commit 948703f3e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");
};
}