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 }