3 ms·
This will open all of the files with TODO in them in vim: alias todogrep="vim $(grep TODO . -rl)" You can modify this easily, such as by using ripgrep, ad
by jamiesonbecker 7y ago
This will open all of the files with TODO in them in vim:
alias todogrep="vim $(grep TODO . -rl)"
You can modify this easily, such as by using ripgrep, adding excludes, or doing regex to find TODO and FIXME together, but this is a quick one-liner to add to your `.bashrc`.
- CDRdude 7y agoYou can put the grep flags at the end? All these years, and I had no idea.
- yencabulator 7y agoDepends on your grep. Reordering flags is typically a GNU getopts extension, not present in traditional UNIXes.