mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 21:49:48 +01:00
zoxide: add xonsh integratiion
This commit is contained in:
parent
a284fe2633
commit
47a2dd4554
1 changed files with 12 additions and 0 deletions
|
@ -63,6 +63,14 @@ in {
|
|||
Whether to enable Nushell integration.
|
||||
'';
|
||||
};
|
||||
|
||||
enableXonshIntegration = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
description = ''
|
||||
Whether to enable Xonsh integration.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -93,5 +101,9 @@ in {
|
|||
source ${config.xdg.cacheHome}/zoxide/init.nu
|
||||
'';
|
||||
};
|
||||
|
||||
programs.xonsh.xonshrc = mkIf cfg.enableXonshIntegration ''
|
||||
execx($(${cfg.package}/bin/zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue