-
-
Save seanf/5a2d9960f4a78e794eb660a08765b0c3 to your computer and use it in GitHub Desktop.
ripgrep with pager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://news.ycombinator.com/item?id=38820047 | |
# -p --pretty | |
# -R --RAW-CONTROL-CHARS | |
# -F --quit-if-one-screen | |
# -X --no-init | |
exec rg -p "$@" | less -RFX | |
#exec rg -p "$@" | ov -F |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment