summaryrefslogtreecommitdiff
path: root/lib/grep.zsh
AgeCommit message (Collapse)Author
2022-10-03chore(lib): update deprecated grep aliases (#11161)Nadhem
2020-03-02lib: use grep-alias cache only if ZSH_CACHE_DIR is writableMarc Cornellà
Fixes #8693
2020-03-01Refactor grep.zsh fileMarc Cornellà
- 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.
2020-03-01Fast algorithm to determine grep alias flagsMarc Cornellà
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.
2020-03-01Performance enhancement for lib/grepmattmc3
- Use $ZSH_CACHE_DIR to store the grep alias with all the right features - Expire the cache after 24 hours - See issue #8444
2020-03-01Ignore .tox folder in grepShi Yan
2020-03-01Also set options for egrep and fgrepPeter Vandenberk
2020-03-01Exclude .idea folder from grep search scopeVital Kolas
2015-09-23Correct repo dirshawn
cvs's metadata is under CVS and not .cvs
2015-02-02Test if --color=auto is a valid option for grepThe Linux Kitten
2014-12-13Change to alias and remove deprecated GREP_COLOROndřej Súkup
2014-12-13Tidy up the grep.zsh libraryMarc Cornellà
2014-12-13Use unaliased grep in flag checkMarc Cornellà
2014-12-13Ignore .bzr folders in grep tooMarc Cornellà
2014-12-13Extract VCS folders definition to avoid repetitionMarc Cornellà
2014-04-19set exclude-dir or exclude grep flags only if availableDmitriy
2014-03-23Fix export syntax of $GREP_OPTIONSMarc Cornellà
Fixes #2641, #2642
2012-06-14avoid VCS foldersnXqd
2009-09-23Moving all zsh config options into a lib/ subdirectory to make way for some ↵Robby Russell
upcoming changes to directory structure and configuration options