diff --git a/etc/bash/rc/file_find.sh b/etc/bash/rc/file_find.sh index 1ec30ac..9c350fe 100644 --- a/etc/bash/rc/file_find.sh +++ b/etc/bash/rc/file_find.sh @@ -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' +}