1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-05-29 21:47:42 +02: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:
Ahmed El Gabri 2018-05-25 12:42:05 +02:00 committed by Andrew Gallant
parent c21b9b20cf
commit c3f97513d6
2 changed files with 29 additions and 0 deletions

View File

@ -539,6 +539,13 @@ $ cat $HOME/.ripgreprc
--type-add
web:*.{html,css,js}*
# Using glob patterns to include/exclude files or folders
--glob=!git/*
# or
--glob
!git/*
# Set the colors.
--colors=line:none
--colors=line:style:bold

View File

@ -98,6 +98,28 @@ would behave identically to the following command
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
any and all support for configuration. This includes any future support
for auto-loading configuration files from pre-determined paths.