1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 15:09:46 +01:00

carapace: add xonsh integration

This commit is contained in:
paki23 2024-06-01 19:54:56 +02:00
parent e136408ca9
commit 3b8c935aa1
No known key found for this signature in database
GPG key ID: 13160FFB4CEB03F2

View file

@ -24,6 +24,10 @@ in {
default = true; default = true;
}; };
enableXonshIntegration = mkEnableOption "Xonsh integration" // {
default = true;
};
enableFishIntegration = mkEnableOption "Fish integration" // { enableFishIntegration = mkEnableOption "Fish integration" // {
default = true; default = true;
}; };
@ -45,6 +49,10 @@ in {
source <(${bin} _carapace zsh) source <(${bin} _carapace zsh)
''; '';
xonsh.xonshrc = mkIf cfg.enableXonshIntegration ''
exec($(${bin} _carapace))
'';
fish.interactiveShellInit = mkIf cfg.enableFishIntegration '' fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
${bin} _carapace fish | source ${bin} _carapace fish | source
''; '';