質問

How do I add a new filetype to ack, with version 2.04 (ack-2.04-single-file). I am using the following command (Is there any way to search in filetypes not recognized by ack?), but I receive an error.

$ ack --type-set=input=.i
ack-2.04-single-file: No regular expression found.
役に立ちましたか?

解決

Using the following does what I wanted:

--type-add=input:ext:i

I found the answer by creating a .ackrc file with:

ack --create-ackrc
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top