summaryrefslogtreecommitdiffstats
path: root/bin/rg
blob: 6191a199439a63d235174971387bd80ed38340d9 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

if [ -t 1 ]; then
    exec /usr/bin/rg --smart-case --no-ignore-messages -p "$@" | less -XFR
else
    exec /usr/bin/rg --smart-case --no-ignore-messages "$@"
fi