buscar-archivos: Usar ripgrep
This commit is contained in:
parent
8b6d382191
commit
7ebab29013
1 changed files with 1 additions and 11 deletions
|
@ -2,18 +2,8 @@
|
|||
set -e
|
||||
cd ~
|
||||
if test "$1" = "elegir"; then
|
||||
find \
|
||||
rg --files --hidden \
|
||||
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"
|
||||
exit $?
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue