Using Ack with CoffeeScript

If you use the wonderful Ack search tool (it's a bit like grep) you may be wondering why it doesn't search your .coffee files.

You need to tell it that .coffee should be treated the same way as .js files, like this:

$ cat >> ~/.ackrc
--type-add
js=.coffee

For more info on configuring Ack, see my post on using Ack with Haml.