television: Add nushell support

This commit is contained in:
leiserfg 2026-01-18 15:45:52 +01:00 committed by Austin Horstman
parent 01415693b0
commit 521d5ea1a2

View file

@ -86,6 +86,7 @@ in
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption { inherit config; };
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; };
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };
enableNushellIntegration = lib.hm.shell.mkNushellIntegrationOption { inherit config; };
};
config = lib.mkIf cfg.enable {
@ -114,5 +115,8 @@ in
programs.fish.interactiveShellInit = lib.mkIf cfg.enableFishIntegration ''
source ${cfg.package}/share/television/completion.fish
'';
programs.nushell = lib.mkIf cfg.enableNushellIntegration {
extraConfig = "source ${cfg.package}/share/television/completion.nu";
};
};
}