2
有谁知道如何让“ack”在像“Gemfile”这样的文件中搜索?如何在“Gemfile”中进行确认搜索?
只需将--type-add=ruby=Gemfile
添加到“〜/ .ackrc”不起作用,因为“Gemfile”没有任何文件扩展名。
谢谢!
有谁知道如何让“ack”在像“Gemfile”这样的文件中搜索?如何在“Gemfile”中进行确认搜索?
只需将--type-add=ruby=Gemfile
添加到“〜/ .ackrc”不起作用,因为“Gemfile”没有任何文件扩展名。
谢谢!
没错。 Ack 1.x不支持检测没有扩展名的文件的文件类型。这将在ack 2.0中改变。 http://github.com/petdance/ack2是我们正在研究的地方。