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
|
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
|
||||||
|
|
Loading…
Reference in a new issue