0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-17 04:16:52 +02:00

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>
This commit is contained in:
Henrik Holmboe 2024-10-08 20:29:30 +02:00 committed by GitHub
parent 4382288aeb
commit 6a10a4d6a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ else
} }
# Ignore these folders (if the necessary grep flags are available) # 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 # Check for --exclude-dir, otherwise check for --exclude. If --exclude
# isn't available, --color won't be either (they were released at the same # isn't available, --color won't be either (they were released at the same