feat(rg): global RC

This commit is contained in:
Michel 2024-05-03 16:51:32 +02:00
parent 7d69fd73e2
commit ba221bb216
2 changed files with 32 additions and 0 deletions

28
.ripgreprc Normal file
View File

@ -0,0 +1,28 @@
## Colors
#
--colors=path:bg:23
--colors=path:fg:253
## Smart-case Search
#
# - case-insensitive if the pattern is all lowercase;
# - case-sensitive otherwise.
#
# Overrides -s/--case-sensitive and -i/--ignore-case flags.
--smart-case
## Files Types
#
# --type-list to show all supported file types and their corresponding globs.
# --type-not to exclude a type from search.
#
--type-not=bzip2
--type-not=gzip
--type-not=xz
## Sorting in ascending order
# - none (Default) Do not sort results. Fastest. Can be multi-threaded.
# - path Sort by file path. Always single-threaded.
# - modified Sort by the last modified time on a file. Always single-threaded.
#
--sort=path

4
.zshrc
View File

@ -132,6 +132,10 @@ if [[ -f $ALT_HISTORY_FILE ]]; then
bindkey -M viins '^[[114;13u' fzf-alt-history-widget
fi
### Ripgrep
#
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
### ZVM — Zsh VI mode
#
# https://github.com/jeffreytse/zsh-vi-mode