-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathripgreprc
30 lines (24 loc) · 882 Bytes
/
ripgreprc
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
# ripgrep config file, must be used with RIPGREP_CONFIG_PATH=/path/to/ripgreprc in the environment.
# Every uncommented line is treated as a single argv, no quoting needed, but this also means that
# there's no arg splitting on spaces in a single line.
# rg defaults to case-sensitive, unlike ag
--smart-case
# skip gitignore by default, invert with --ignore-vcs
--no-ignore-vcs
# colors to mimic ag
--colors=match:fg:magenta
--colors=line:fg:yellow
--colors=path:fg:green
# extend make type to include Makefile.*, as often seen in the linux kernel
# (note this is a glob not a regex)
--type-add=make:[Mm]akefile.*
# type aliases
--type-add=bb:include:bitbake
--type-add=cxx:include:cpp
--type-clear=mk
--type-add=mk:include:make
--type-add=patch:include:diff
--type-add=rs:include:rust
--type-add=kconfig:Kconfig
--type-add=kconfig:Kconfig.*
--type-add=kconf:include:kconfig