From 8951c2e56b321bf03d2394f80e4af050382b1041 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 22 Sep 2022 20:42:04 +0200 Subject: [PATCH] Update fzf book script --- .bin/fzf-book | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bin/fzf-book b/.bin/fzf-book index 3e11482..c563d93 100755 --- a/.bin/fzf-book +++ b/.bin/fzf-book @@ -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 &