Open fmthoma opened 7 years ago
E.g. in ~/.vgrep/config.yaml:
~/.vgrep/config.yaml
… backend: grep-command: "grep -nH --color=always" recursive-grep-command: "grep -rnHI --color=always" …
Use cases:
ack
ag
grep
-i
OTOH: Part of the functionality can simply be emulated using a shell alias:
alias vgrep='function __ack_vgrep() { ack --color "$@" | vgrep; }; __ack_vgrep'
with the restriction that some arguments (like --help, --version) will produce garbled output, and that piping (vgrep foo | vgrep bar) is not possible.
--help
--version
vgrep foo | vgrep bar
E.g. in
~/.vgrep/config.yaml
:Use cases:
ack
/ag
instead ofgrep
-i
) by defaultOTOH: Part of the functionality can simply be emulated using a shell alias:
with the restriction that some arguments (like
--help
,--version
) will produce garbled output, and that piping (vgrep foo | vgrep bar
) is not possible.