From 953e46c7b07688eadfe038562d0bd33d830860d3 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 3 Jul 2019 13:30:03 +0200 Subject: [PATCH] Page through ripgrep output with less, preserving highlights --- .config/fish/config.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index a66dfcf..007a774 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -97,6 +97,10 @@ function grepl grep --color=always -ir $argv | less -R end +function rgl + rg -p $argv | less -RFX +end + ## Various #alias tmux 'tmux -2' alias tmux_reload "tmux source-file ~/.tmux.conf"