summaryrefslogtreecommitdiffstats
path: root/ripgrep/.bin/rg
diff options
context:
space:
mode:
Diffstat (limited to 'ripgrep/.bin/rg')
-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