forked from booch/config_files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathackrc
70 lines (54 loc) · 1.89 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
68
69
70
# Automatically send output through less (with processing of ANSI color codes) unless piping.
--pager=less -R
# Always display the files in alphabetical order.
--sort-files
# Display 3 lines before and after each matching line.
--context=3
# Follow soft links.
--follow
# Print file name on a separate line before all matches for that file, with blank line between files.
--group
# Ignore directories that don't (normally) contain source code. If you want to search in them, specify them in the command line.
--ignore-dir=.idea
--ignore-dir=.bundle
--ignore-dir=tmp
--ignore-dir=temp
--ignore-dir=log
--ignore-dir=coverage
--ignore-dir=results
--ignore-dir=mock_data
--ignore-dir=stress_test_scripts
--ignore-dir=vendor
## Add some new file types and file extensions.
# This is so I can use "bash" in place of "shell".
--type-set=bash=.bash,.sh
# Create a type for Markdown text.
--type-set=markdown=.md,.mmd,.mkd
# When looking for Ruby files, include HAML, Slim, ERB, and rake files.
--type-add=ruby=.haml,.slim,.erb,.rake
# When looking for CSS files, include Sass and Less files (which get compiled into CSS).
--type-add=css=.sass,.scss,.less
# Allow either flavor of Sass.
--type-set=sass=.sass,.scss
# I never use this for PHP, but some people/projects use it for PHP include files.
--type-add=php=.inc
# Create a type just for HAML files (but include Slim files too).
--type-set=haml=.haml,.slim
--type-set=slim=.slim
# Create a type for CoffeeScript files (and Eco templates).
--type-set=coffee=.coffee,.coffee.md,.eco
# Create a type for Cucumber feature files.
--type-set=cucumber=.feature
# Add a few more programming languages.
--type-set=ada=.ada
--type-set=boo=.boo
--type-set=clojure=.clj
--type-set=eiffel=.e,.eiffel
--type-set=factor=.factor
--type-set=fsharp=.fs
--type-set=groovy=.groovy
--type-set=io=.io
--type-set=pdf=.pdf
--type-set=reia=.re
--type-set=scala=.scala
--type-set=elixir=.ex,.exs