From 0c0f544366a16dde57085e396084633c9f882e6d Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Thu, 3 Nov 2022 10:12:08 -0500 Subject: [PATCH] Add ripgrep config --- .bashrc | 5 ++++- .ripgreprc | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .ripgreprc diff --git a/.bashrc b/.bashrc index c9b35b2..c0ea16d 100644 --- a/.bashrc +++ b/.bashrc @@ -446,8 +446,11 @@ MANPATH=$(puniq "$MANPATH") test -n "$PS1" && prompt_color +# ripgrep +export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc" + # fzf -export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules,*.swp,.venv}/*" 2> /dev/null' +export FZF_DEFAULT_COMMAND="rg --files --hidden --follow --color=never 2> /dev/null" export FZF_DEFAULT_OPTS='--bind J:down,K:up --reverse --ansi --multi' # --------------------------------------------------------------------------- diff --git a/.ripgreprc b/.ripgreprc new file mode 100644 index 0000000..201a0e6 --- /dev/null +++ b/.ripgreprc @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------- +# General Settings +# -------------------------------------------------------------------- +# Only search with case sensitivity if there is mixed case +--smart-case +# Follow symlinks +--follow +# Always sort the files +--sort=path +# Always color, even if piping to a another program +--color=always +# Grouping +--heading +# Always print filename prefix +--with-filename + +# -------------------------------------------------------------------- +# Global Inclusions/Exclusions +# -------------------------------------------------------------------- +# Always search dotfiles +--hidden +# Always ignore VCS and cache files +--glob=!{.git,node_modules,*.swp,.venv}/* + +# -------------------------------------------------------------------- +# Custom File-Types +# -------------------------------------------------------------------- +--type-add=mumps:*.{m,ro,ROU,GLO} +--type-add=markdown:*.{md,mkd,markdown} + +# -------------------------------------------------------------------- +# Colors +# -------------------------------------------------------------------- +--colors=path:fg:cyan +--colors=path:style:underline +--colors=line:fg:yellow +--colors=match:fg:green +--colors=match:style:bold -- 2.47.1