summaryrefslogtreecommitdiffstats
path: root/ripgrep
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-02-27 23:00:05 -0500
committerJesse Luehrs <doy@tozt.net>2024-02-27 23:00:05 -0500
commit5adaa58692524902d6b7a0d5b4230641ced61c06 (patch)
treeaf88c0150ff7d9b82910a66ef54853e2c2d6859f /ripgrep
parent562639cfd7f8f612f9f9cae9a4278379f0c92b8b (diff)
downloadconf-5adaa58692524902d6b7a0d5b4230641ced61c06.tar.gz
conf-5adaa58692524902d6b7a0d5b4230641ced61c06.zip
split out ripgrep config
Diffstat (limited to 'ripgrep')
-rwxr-xr-xripgrep/.bin/rg7
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