diff --git a/modules/programs/carapace.nix b/modules/programs/carapace.nix index c31e2feed..ae929dae2 100644 --- a/modules/programs/carapace.nix +++ b/modules/programs/carapace.nix @@ -24,6 +24,10 @@ in { default = true; }; + enableXonshIntegration = mkEnableOption "Xonsh integration" // { + default = true; + }; + enableFishIntegration = mkEnableOption "Fish integration" // { default = true; }; @@ -45,6 +49,10 @@ in { source <(${bin} _carapace zsh) ''; + xonsh.xonshrc = mkIf cfg.enableXonshIntegration '' + exec($(${bin} _carapace)) + ''; + fish.interactiveShellInit = mkIf cfg.enableFishIntegration '' ${bin} _carapace fish | source '';