From 837fd40a56b00530df4908f42b86cd25199e85d9 Mon Sep 17 00:00:00 2001 From: Henrik Holmboe Date: Fri, 20 Sep 2024 14:58:54 +0200 Subject: [PATCH] fix(grep): exclude Python virtualenv (.venv) dir from grep The convention to use `.venv/` directories for Python virtualenv's are widespreasd. This directory is huge and gives very little value when grepping in a source code directory. --- lib/grep.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grep.zsh b/lib/grep.zsh index 5b3dec87e..967bc3d10 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -10,7 +10,7 @@ else } # Ignore these folders (if the necessary grep flags are available) - EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea,.tox}" + EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea,.tox,.venv}" # Check for --exclude-dir, otherwise check for --exclude. If --exclude # isn't available, --color won't be either (they were released at the same