Skip to content

Commit

Permalink
Ripgrep is faster than the_silver_searcher
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Sep 14, 2021
1 parent ebb70f5 commit d63f1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/next
Expand Up @@ -102,7 +102,7 @@ function list_scheduled_gifs {
}
function count_unscheduled {
unscheduled=$(ag -l 2100 source | wc -l)
unscheduled=$(rg -l 2100 source | wc -l)
[ -n "$unscheduled" ] && \
printf '\e[1m\e[32mThere are %d unscheduled GIFs.\e[0m\n' $unscheduled
}
Expand All @@ -111,7 +111,7 @@ function list_unscheduled_gifs {
list_scheduled_gifs 1000 next am
echo ''
ag -l 2100 source \
rg -l 2100 source \
| sed -e 's/^source.//' -e 's#/[^/]*$##' \
| sort \
| uniq -c \
Expand Down

0 comments on commit d63f1ac

Please sign in to comment.