mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39: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;
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue