Skip to content

Instantly share code, notes, and snippets.

@chadfennell
Created February 27, 2012 21:28
Show Gist options
  • Select an option

  • Save chadfennell/1927219 to your computer and use it in GitHub Desktop.

Select an option

Save chadfennell/1927219 to your computer and use it in GitHub Desktop.
--type-set=drupal=.module,.info,.inc,.php,.js
@chadfennell
Copy link
Copy Markdown
Author

The above configuration file assumes that you have ack "better than grep" http://betterthangrep.com) installed on your machine. Place the above config file in ~/.ackrc and run ack --help types (or ack-grep --help types, depending your system) and look for "--[no]drupal .module .info .inc .php .js" in your type settings listing.

@chadfennell
Copy link
Copy Markdown
Author

To use search only drupal-related files with the above config, simply run "ack --drupal your_search_here"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment