From d6a5f28231fe59f1dfae7e00e490e6e6c1088104 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 13 Dec 2023 13:56:22 +0300 Subject: [PATCH] Smart case ripgrep --- modules/ripgrep/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/ripgrep/default.nix b/modules/ripgrep/default.nix index f996e07..f459bd4 100644 --- a/modules/ripgrep/default.nix +++ b/modules/ripgrep/default.nix @@ -1,9 +1,10 @@ { ulib, ... }: with ulib; homeConfiguration { - programs.nushell.shellAliases.todo = ''rg --ignore-case "TODO|FIXME" --colors match:fg:yellow --colors match:style:bold''; - - programs.ripgrep = enabled { - arguments = [ "--line-number" ]; + programs.nushell.shellAliases = { + rg = "rg --line-number --smart-case"; + todo = ''rg "todo|fixme" --colors match:fg:yellow --colors match:style:bold''; }; + + programs.ripgrep = enabled {}; }