From 51ebd7a4e36de375e29085afd693918cc2b72187 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 19 Mar 2022 15:07:13 +0100 Subject: [PATCH] ripgrep auto paging in interactive shells --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 7fd1e0b..33eb8d9 100644 --- a/.zshrc +++ b/.zshrc @@ -108,6 +108,10 @@ alias v=vgrep alias ve='env EDITOR= vgrep -s' alias xc=clip +# ripgrep "auto paging" +rg() { + /usr/bin/rg -p "$@" | bat +} ## Prompt