diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-02-27 23:00:05 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-02-27 23:00:05 -0500 |
commit | 5adaa58692524902d6b7a0d5b4230641ced61c06 (patch) | |
tree | af88c0150ff7d9b82910a66ef54853e2c2d6859f /ripgrep/.bin/rg | |
parent | 562639cfd7f8f612f9f9cae9a4278379f0c92b8b (diff) | |
download | conf-5adaa58692524902d6b7a0d5b4230641ced61c06.tar.gz conf-5adaa58692524902d6b7a0d5b4230641ced61c06.zip |
split out ripgrep config
Diffstat (limited to 'ripgrep/.bin/rg')
-rwxr-xr-x | ripgrep/.bin/rg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ripgrep/.bin/rg b/ripgrep/.bin/rg new file mode 100755 index 0000000..ea88361 --- /dev/null +++ b/ripgrep/.bin/rg @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -t 1 ]; then + exec /usr/bin/rg --smart-case --no-ignore-messages -p "$@" | less -FR +else + exec /usr/bin/rg --smart-case --no-ignore-messages "$@" +fi |