Henrik Holmboe
6a10a4d6a3
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>
1 year ago
robertoaceves
efe21261d0
fix(grep): remove duplicate options ( #12639 )
2 years ago
Nadhem
570158e464
chore(lib): update deprecated grep aliases ( #11161 )
4 years ago
Marc Cornellà
d3dfc13716
lib: use grep-alias cache only if ZSH_CACHE_DIR is writable
...
Fixes #8693
6 years ago
Marc Cornellà
dc190d872a
Refactor grep.zsh file
...
- Move grep-alias path to variable.
- Use <<< "" instead of piped echo to check grep flags.
- Remove check for --color only since it's the same release as --exclude.
6 years ago
Marc Cornellà
8d814fdff6
Fast algorithm to determine grep alias flags
...
This version tries whether grep supports all the flags together
and progressively checks older flags if the grep test fails.
This means only one grep call if all flags are supported, and
one additional call for every flag that's not supported, up to
a maximum of 3 calls.
6 years ago
mattmc3
57b178102c
Performance enhancement for lib/grep
...
- Use $ZSH_CACHE_DIR to store the grep alias with all the right features
- Expire the cache after 24 hours
- See issue #8444
6 years ago
Shi Yan
a8ed1c4e7a
Ignore .tox folder in grep
6 years ago
Peter Vandenberk
b4b50f20ac
Also set options for egrep and fgrep
6 years ago
Vital Kolas
b6f2cfdb93
Exclude .idea folder from grep search scope
6 years ago
shawn
7a636097f8
Correct repo dir
...
cvs's metadata is under CVS and not .cvs
11 years ago
The Linux Kitten
f2130fa1a3
Test if --color=auto is a valid option for grep
11 years ago
Ondřej Súkup
dd27087805
Change to alias and remove deprecated GREP_COLOR
11 years ago
Marc Cornellà
711843153d
Tidy up the grep.zsh library
11 years ago
Marc Cornellà
0190eb084b
Use unaliased grep in flag check
11 years ago
Marc Cornellà
cf586b54b8
Ignore .bzr folders in grep too
11 years ago
Marc Cornellà
0bd3c9996f
Extract VCS folders definition to avoid repetition
11 years ago
Dmitriy
9385b3ee0a
set exclude-dir or exclude grep flags only if available
12 years ago
Marc Cornellà
c0e3c553bc
Fix export syntax of $GREP_OPTIONS
...
Fixes #2641 , #2642
12 years ago
nXqd
d2a765e12d
avoid VCS folders
12 years ago
Marc Cornellà
12e30faaca
Fix export syntax of $GREP_OPTIONS
...
Fixes #2641 , #2642
12 years ago
nXqd
4f9cfee9bd
avoid VCS folders
14 years ago
Robby Russell
8debd097fb
Moving all zsh config options into a lib/ subdirectory to make way for some upcoming changes to directory structure and configuration options
17 years ago
Robby Russell
5da20b9ddd
Importing initial files after reorganizing stuff.
17 years ago