HakonHarnes / img-clip.nvim

Effortlessly embed images into any markup language, like LaTeX, Markdown or Typst
MIT License
443 stars 7 forks source link

Plugin Fails in a Non-POSIX Compatible Shell #64

Closed szsdk closed 5 months ago

szsdk commented 5 months ago

In a non-POSIX compatible shell, the execution of the paste command will fail. My suggestion is to change this line: https://github.com/HakonHarnes/img-clip.nvim/blob/61ece8b8a206a31459d3f3ff186d6e2b2f958356/lua/img-clip/util.lua#L36 to something like sh -c $input_cmd.

HakonHarnes commented 5 months ago

Thanks for reporting and the suggestion. Does fix/non-posix-compliant-shells address the issue for you?

szsdk commented 5 months ago

Yes. It addresses my issue. Thanks for your quick response.