Update fzf book script
parent
2ddd2ab219
commit
8951c2e56b
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
# Find and open pdf
|
# 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 &
|
||||||
|
|
Loading…
Reference in New Issue