buscar-archivos: Usar ripgrep

This commit is contained in:
Cat /dev/Nulo 2022-02-09 19:56:37 -03:00
parent 8b6d382191
commit 7ebab29013

View file

@ -2,18 +2,8 @@
set -e set -e
cd ~ cd ~
if test "$1" = "elegir"; then if test "$1" = "elegir"; then
find \ rg --files --hidden \
Documents Sync Pictures Downloads Proyectos \ Documents Sync Pictures Downloads Proyectos \
-iname '*.jpg' -or \
-iname '*.png' -or \
-iname '*.js' -or \
-iname '*.md' -or \
-iname '*.txt' -or \
-iname '*.pdf' -or \
-iname '*.epub' -or \
-iname '*.docx' -or \
-iname '*.mp3' -or \
-type d \
| fzf > "$2" | fzf > "$2"
exit $? exit $?
fi fi