浏览代码

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>
Henrik Holmboe 1 月之前
父节点
当前提交
6a10a4d6a3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/grep.zsh

+ 1 - 1
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