Skip to content

Instantly share code, notes, and snippets.

@craig-davis
Last active May 25, 2016 15:19
Show Gist options
  • Save craig-davis/fa483db03a87e3c27a4f6635f70a701f to your computer and use it in GitHub Desktop.
Save craig-davis/fa483db03a87e3c27a4f6635f70a701f to your computer and use it in GitHub Desktop.
Ack config
# Always color, even if piping to a another program
--color
# Show two lines around match
-C2
# Use "less −r" as my pager
# --pager
# less -r
--ignore-dir=.idea/
--ignore-dir=.sass-cache
--ignore-file=match:init.pkg.js
--ignore-file=match:.gitignore
--ignore-file=match:jquery.js
--ignore-file=match:jquery-ui.js
--ignore-file=match:.rbenv-version
--ignore-file=match:.rspec
--ignore-file=match:.rvmrc
#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
#make sure ack knows how to search in common template files
--type-add=html=.html.erb,.html.haml,.handlebars,.smarty,.tpl,.hbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment