Grep wrapper that tries to pick the most efficient tool available by context.
DEPRECATED: Just use https://github.com/BurntSushi/ripgrep
basher install juanibiapina/smart-grep
smart-grep pattern
smart-grep will select the tool with the following priority:
git grep
if current directory is a git repositoryag
if availableack
if availablegrep
Add the following to your vim configuration:
if executable('smart-grep')
set grepprg=smart-grep
endif
- First, make sure you have bats installed:
basher install sstephenson/bats
or manually: instructions here
- Running Tests:
make test