summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHenrik Holmboe <henrik@holmboe.se>2024-10-08 20:29:30 +0200
committerGitHub <noreply@github.com>2024-10-08 20:29:30 +0200
commit6a10a4d6a3004b39e0bbcff530f97c95cad5127d (patch)
tree08285f51c90b8e274aa7195b08b3d5336fe826ea /lib
parent4382288aeba14c58d8eab138fba39aeb5edcdbf6 (diff)
downloadzsh-6a10a4d6a3004b39e0bbcff530f97c95cad5127d.tar.gz
zsh-6a10a4d6a3004b39e0bbcff530f97c95cad5127d.tar.bz2
zsh-6a10a4d6a3004b39e0bbcff530f97c95cad5127d.zip
feat(grep): exclude Python virtualenv from `grep` (#12685)
The convention to use `.venv` or `venv` directories for Python virtualenvs is widespread. This directory is huge and gives very little value when grepping in a source code directory. Co-authored-by: Marc Cornellà <marc@mcornella.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/grep.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/grep.zsh b/lib/grep.zsh
index 5b3dec87e..1a70de7e5 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,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