Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zathura conpletion for zsh broken



Oliver Freyermuth wrote on Tue, Sep 25, 2018 at 17:14:04 +0200:
> +++ b/Completion/X/Command/_zathura
> @@ -25,7 +25,7 @@ _zathura_files(){
>      elif [[ $pf =~ "poppler" ]]; then
>        supported_filetypes+="pdf"
>      else
> -      supported_filetypes+="${${pf%.so}#${plugins_dir}/lib}"
> +      supported_filetypes+="${${pf%.so}#${plugins_dir}/}"

Isn't this equivalent to «supported_filetypes+=${pf:t:r}»?

The 'break' on line 12 looks odd.  Does zathura really ignore
/usr/lib/zathura/foo.so if /usr/local/lib/zathura/bar.so exists and
/usr/local/lib/zathura/foo.so does not?

Thanks,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author