19 lines
301 B
Bash
Executable file
19 lines
301 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
cd ~
|
|
if test "$1" = "elegir"; then
|
|
rg --files --hidden \
|
|
Documents Sync Pictures Downloads Proyectos \
|
|
| fzf > "$2"
|
|
exit $?
|
|
fi
|
|
|
|
out="$(mktemp)"
|
|
footclient --app-id=fzf buscar-archivos elegir $out
|
|
file="$(cat $out)"
|
|
rm "$out"
|
|
|
|
if test -e "$file"; then
|
|
exec handlr open "$file"
|
|
fi
|