Skip to content

Instantly share code, notes, and snippets.

@andrewwoods
Created May 10, 2023 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewwoods/0ae9b7e417eb049d95d588dc5be4ca60 to your computer and use it in GitHub Desktop.
Save andrewwoods/0ae9b7e417eb049d95d588dc5be4ca60 to your computer and use it in GitHub Desktop.
RipGrep all PHP requires/includes on command line
# rg --type-list will show all the file types with their associated file extensions.
# Use the --type-add option once for each additional type you want
# to be seen as a PHP file.
rg -e '^require(_once)?\b' -e '^include(_once)?\b' --type-add 'php:*.inc' --type php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment