From a7aa9c7a7204061d601dbbb63779e000682b1ad0 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 27 Nov 2024 14:04:13 +0100 Subject: [PATCH] vcs+rg: fix ignore globs --- home/common/utils.nix | 11 +++++++---- home/common/vcs.nix | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/home/common/utils.nix b/home/common/utils.nix index 0a608da..d9b5abe 100644 --- a/home/common/utils.nix +++ b/home/common/utils.nix @@ -53,10 +53,13 @@ ripgrep = { enable = true; arguments = [ - "--glob=!.git/*" - "--glob=!.jj/*" - "--glob=!result/*" - "--glob=!target/*" + "--glob=!**/.cache/*" + "--glob=!**/.direnv/*" + "--glob=!**/.git/*" + "--glob=!**/.jj/*" + "--glob=!**/{node_modules,.npm,dist}/*" + "--glob=!**/target/*" + "--glob=!**/result/*" ]; }; diff --git a/home/common/vcs.nix b/home/common/vcs.nix index fde4105..34ec497 100644 --- a/home/common/vcs.nix +++ b/home/common/vcs.nix @@ -116,9 +116,12 @@ "*.so" "*.swp" ".direnv" + ".env" ".idea" + ".nixos-test-history" ".null-ls_*" - "result" + "/result*" + "/target" ]; signing = {