Skip to content

Commit

Permalink
Prefer ripgrep for finding in files
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Jan 31, 2022
1 parent 71887ed commit 134e05f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/bash/rc/file_find.sh
Expand Up @@ -8,8 +8,16 @@ alias fgr='find . | egrep -i'
alias ffgr='find . -type f | egrep -i'
alias fgx='find . -type f -print0 | xargs -0 egrep -i'

# prefer ack over grep
available ack \
&& alias fgx='ack -ai'

# prefer the_silver_searcher over ack
available ag \
&& alias fgx='ag -ai'

# prefer ripgrep over the_silver_searcher
available rg && {
alias fgx='rg --smart-case --no-ignore --hidden'
alias rg='rg --smart-case'
}

0 comments on commit 134e05f

Please sign in to comment.