summaryrefslogtreecommitdiff
path: root/rgi
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-09-02 09:59:41 -0400
committerBen Sima <ben@bsima.me>2022-09-02 09:59:41 -0400
commitebe1a81d77cff83492961c994c725db735c54e97 (patch)
tree41a1cc8caefdeeba7bbcc1c7c77f1a10e82858b0 /rgi
parente93f27b4b532421e2f95d9bcae4cd2031a4d8d20 (diff)
simple interactive rg
Diffstat (limited to 'rgi')
-rwxr-xr-xrgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/rgi b/rgi
new file mode 100755
index 0000000..aeb1b09
--- /dev/null
+++ b/rgi
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+file=$1
+cat $1 | fzf --bind="change:reload:rg {q} $1 || true" --ansi --phony