aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish/functions/rvg.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/fish/functions/rvg.fish b/fish/functions/rvg.fish
new file mode 100644
index 0000000..ba85eb3
--- /dev/null
+++ b/fish/functions/rvg.fish
@@ -0,0 +1,7 @@
+function rvg --wraps=rg --description 'ripvimgrep, a wrapper for ripgrep(1) to use vimgrep'
+ if not command --query rg
+ return 127
+ end
+
+ command rg --vimgrep $argv
+end