mirror of
https://github.com/nmasur/dotfiles
synced 2025-03-14 16:57:06 +00:00
31 lines
504 B
Nix
31 lines
504 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.nmasur.presets.programs.zoxide;
|
|
in
|
|
|
|
{
|
|
|
|
options.nmasur.presets.programs.zoxide.enable = lib.mkEnableOption "zoxide smart cd replacement";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.zoxide = {
|
|
enable = true;
|
|
enableFishIntegration = true;
|
|
enableBashIntegration = true;
|
|
options = [ "--no-cmd" ]; # Disables key mapping
|
|
};
|
|
|
|
programs.fish.shellAliases = {
|
|
cd = "__zoxide_z";
|
|
cdi = "__zoxide_zi";
|
|
};
|
|
|
|
};
|
|
}
|