/ modules / common / ripgrep.nix
ripgrep.nix
 1  { lib, ... }:
 2  let
 3    inherit (lib) enabled;
 4  in
 5  {
 6    environment.shellAliases.todo = "rg \"todo|fixme\" --colors match:fg:yellow --colors match:style:bold";
 7  
 8    home-manager.sharedModules = [
 9      {
10        programs.ripgrep = enabled {
11          arguments = [
12            "--line-number"
13            "--smart-case"
14          ];
15        };
16      }
17    ];
18  }