Create a reusable ad hoc type mapping.
Section: Type filters
Define a custom file type on the command line
bash
bash
rg --type-add 'proto:*.{proto,protodevel}' -t proto 'service ' .Explanation
Custom types are ideal for proprietary extensions or mixed conventions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Type filters