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