From 094fef6e8fa9895c59ddd58e2a1f4492cefdf463 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 27 Sep 2018 18:20:19 +0000 Subject: [PATCH] Teach _zathura to support both naming conventions of /usr/lib/zathura/*.so modules. --- Completion/X/Command/_zathura | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Completion/X/Command/_zathura b/Completion/X/Command/_zathura index 615488068..9c26910d8 100644 --- a/Completion/X/Command/_zathura +++ b/Completion/X/Command/_zathura @@ -24,7 +24,9 @@ _zathura_files(){ elif [[ $pf =~ "poppler" ]]; then supported_filetypes+="pdf" else + # Some systems have /usr/lib/zathura/djvu.so, others have /usr/lib/zathura/libdjvu.so. supported_filetypes+="${pf:t:r}" + supported_filetypes+="${${pf:t:r}#lib}" fi done _files -g "*.(${(j.|.)${(@u)supported_filetypes}})(-.)"