Does anyone know how to make "ack" to search in such files like "Gemfile"?
Just adding --type-add=ruby=Gemfile
to "~/.ackrc" doesn't work because "Gemfile" doesn't have any file extension.
Thanks!
Does anyone know how to make "ack" to search in such files like "Gemfile"?
Just adding --type-add=ruby=Gemfile
to "~/.ackrc" doesn't work because "Gemfile" doesn't have any file extension.
Thanks!
That's right. Ack 1.x does not support detecting filetypes on files that don't have an extension. This will change in ack 2.0. http://github.com/petdance/ack2 is where we're working on it.