carapace: add xonsh integration
This commit is contained in:
parent
0726e1a805
commit
47351a4a4a
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue