From 23e867f54695d328febf2e4a695d95880328e05d Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 19 Mar 2022 15:41:33 +0100 Subject: [PATCH] rg config --- .config/rg/rg.conf | 10 ++++++++++ .ripgreprc | 8 -------- .zshrc | 5 ++++- 3 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 .config/rg/rg.conf delete mode 100644 .ripgreprc diff --git a/.config/rg/rg.conf b/.config/rg/rg.conf new file mode 100644 index 0000000..a09bccf --- /dev/null +++ b/.config/rg/rg.conf @@ -0,0 +1,10 @@ +--glob=!/.git/ +--glob=!/.terraform/ +--pretty +--colors=column:fg:100,181,246 +--colors=line:fg:100,181,246 +--colors=path:fg:26,35,126 +--colors=path:style:bold +--colors=match:style:nobold +--colors=match:bg:255,235,59 +--colors=match:fg:0,0,0 diff --git a/.ripgreprc b/.ripgreprc deleted file mode 100644 index fd062d2..0000000 --- a/.ripgreprc +++ /dev/null @@ -1,8 +0,0 @@ ---glob=!/vendor/ ---glob=!/.git/ ---glob=!/.terraform/ ---pretty ---colors=path:fg:100,150,210 ---colors=match:style:nobold ---colors=match:bg:180,150,40 ---colors=match:fg:0,0,0 diff --git a/.zshrc b/.zshrc index 33eb8d9..e0e594e 100644 --- a/.zshrc +++ b/.zshrc @@ -108,7 +108,10 @@ alias v=vgrep alias ve='env EDITOR= vgrep -s' alias xc=clip -# ripgrep "auto paging" +## ripgrep +export RIPGREP_CONFIG_PATH=${HOME}/.config/rg/rg.conf + +# "auto paging" rg() { /usr/bin/rg -p "$@" | bat }