Skip to content

Instantly share code, notes, and snippets.

@patscan
Created January 16, 2014 23:28
Show Gist options
  • Save patscan/8465525 to your computer and use it in GitHub Desktop.
Save patscan/8465525 to your computer and use it in GitHub Desktop.
A customized .ackrc file. Save in ~/.ackrc and get faster, more relevant ack results!
# Always sort the files
#--sort−files
# Always color, even if piping to a another program
--color
# Use "less −r" as my pager
# --pager
# less -r
--ignore-dir=coverage/
--ignore-dir=db/
--ignore-dir=doc/
--ignore-dir=log/
--ignore-dir=newrelic/
--ignore-dir=screens/
#make sure ack knows how to search common filetypes used in rails projects
--type-add=css=scss
--type-add=ruby=.haml,.rselm,.feature,.ru,.lock
--type-set=coffeescript=.coffee
--type-set=coffee=.coffee
#make sure ack knows how to search common filetypes used in node.js projects
--ignore-dir=node_modules
--type-set=coffee=.coffee
--type-set=jade=.jade
--type-set=feature=.feature
--type-set=json=.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment