ark/profiles/develop/zsh/functions/rg

7 lines
129 B
Plaintext
Raw Normal View History

# pipe rg into less with colors
if [[ -t 1 && -n $PAGER ]]; then
@ripgrep@/bin/rg -p $@ | $PAGER
else
@ripgrep@/bin/rg $@
fi