From 3b8c935aa140f214b5dd5ae7aa9b78e5b92b628b Mon Sep 17 00:00:00 2001 From: paki23 Date: Sat, 1 Jun 2024 19:54:56 +0200 Subject: [PATCH] carapace: add xonsh integration --- modules/programs/carapace.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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 '';