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:
parent
e136408ca9
commit
3b8c935aa1
1 changed files with 8 additions and 0 deletions
|
@ -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