Update fzf book script

master
Hektor Misplon 2022-09-22 20:42:04 +02:00
parent 2ddd2ab219
commit 8951c2e56b
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
# Find and open pdf
selected=$(ls ~/doc/books/*.{pdf,epub,djvu} | fzf)
# -printf "%f\n"
selected="$(find /home/h/doc/books/ -regex '.*\.\(pdf\|epub\|djvu\)' -type f | sort | fzf --delimiter=/ --with-nth=-1)"
zathura "$selected" &
# Open and redirect output to /dev/null
zathura "$selected" 2> /dev/null &