Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何让“ack”来搜索像“Gemfile”这样的文件?
仅仅添加--type-add=ruby=Gemfile到“~/.ackrc”是行不通的,因为“Gemfile”没有任何文件扩展名。
--type-add=ruby=Gemfile
谢谢!
这是正确的。Ack 1.x 不支持检测没有扩展名的文件的文件类型。这将在 ack 2.0 中改变。 http://github.com/petdance/ack2是我们正在研究的地方。