mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-14 03:35:47 -07:00
doc: sync config file examples
This brings the examples for configuration files in sync between the man page and the guide.
This commit is contained in:
committed by
Andrew Gallant
parent
c21b9b20cf
commit
c3f97513d6
7
GUIDE.md
7
GUIDE.md
@@ -539,6 +539,13 @@ $ cat $HOME/.ripgreprc
|
|||||||
--type-add
|
--type-add
|
||||||
web:*.{html,css,js}*
|
web:*.{html,css,js}*
|
||||||
|
|
||||||
|
# Using glob patterns to include/exclude files or folders
|
||||||
|
--glob=!git/*
|
||||||
|
|
||||||
|
# or
|
||||||
|
--glob
|
||||||
|
!git/*
|
||||||
|
|
||||||
# Set the colors.
|
# Set the colors.
|
||||||
--colors=line:none
|
--colors=line:none
|
||||||
--colors=line:style:bold
|
--colors=line:style:bold
|
||||||
|
@@ -98,6 +98,28 @@ would behave identically to the following command
|
|||||||
|
|
||||||
rg --smart-case foo
|
rg --smart-case foo
|
||||||
|
|
||||||
|
another example is adding types
|
||||||
|
|
||||||
|
--type-add
|
||||||
|
web:*.{html,css,js}*
|
||||||
|
|
||||||
|
would behave identically to the following command
|
||||||
|
|
||||||
|
rg --type-add 'web:*.{html,css,js}*' foo
|
||||||
|
|
||||||
|
same with using globs
|
||||||
|
|
||||||
|
--glob=!git/*
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
--glob
|
||||||
|
!git/*
|
||||||
|
|
||||||
|
would behave identically to the following command
|
||||||
|
|
||||||
|
rg --glob '!git/*' foo
|
||||||
|
|
||||||
ripgrep also provides a flag, *--no-config*, that when present will suppress
|
ripgrep also provides a flag, *--no-config*, that when present will suppress
|
||||||
any and all support for configuration. This includes any future support
|
any and all support for configuration. This includes any future support
|
||||||
for auto-loading configuration files from pre-determined paths.
|
for auto-loading configuration files from pre-determined paths.
|
||||||
|
Reference in New Issue
Block a user