-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathackrc
67 lines (52 loc) · 1.37 KB
/
ackrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Always color, even if piping to another program
--color
# Colors
# --color-filename=bold green
# --color-lineno=bold red
# --color-match=bold magenta
# Show this number of context lines above and below the match
--context=2
# Sort filenames lexically so multiple ack runs produce the same output
--sort-files
# Search case-sensitive if there is any mixed case
--smart-case
# Follow symlinks
--follow
# Use less as the pager unless the output can be displayed on a single screen
--pager=less -iFNQRX
# Ignore directories
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=coverage
--ignore-dir=node_modules
--ignore-dir=.sass-cache
# Ignore files
--ignore-file=is:npm-debug.log
--ignore-file=is:.netrwhist
--ignore-file=is:tags
--ignore-file=is:TAGS
# Set types that ack doesn't know about
--type-set=markdown=.md,.markdown,.mkd
--type-set=xcode=.pbxproj,.pbxuser,.perspectivev3
--type-set=plist=.plist
--type-set=textile=.textile
--type-set=cucumber=.feature
--type-set=haml=.haml
--type-set=rdoc=.rdoc
# Add types to known types
--type-add=js=.coffee
--type-add=js=.json
--type-add=css=.sass
--type-add=css=.scss
--type-add=css=.less
--type-add=html=.html.erb
--type-add=html=.html.haml
--type-add=ruby=.haml
--type-add=ruby=.rake
--type-add=ruby=Rakefile
--type-add=ruby=.ru
--type-add=ruby=.thor
--type-add=ruby=Thorfile
--type-add=ruby=.rabl
--type-add=ruby=.builder
--type-add=vim=.vimrc