thimc / lfimg

Image preview support for lf (list files) using Überzug
GNU General Public License v3.0
252 stars 45 forks source link

Make all the scripts POSIX compliant #20

Closed Role92 closed 3 years ago

Role92 commented 3 years ago

I rewrote all the scripts in strictly POSIX compliant syntax. The only bashisms used in the scripts were the arrays for ueberzug. However, ueberzug supports three different parsers (bash, simple and json). I went with the json parser. This makes the scripts way more portable, because bash is not required anymore.

I also made a slight change to the README, because it still stated, that it is necessary to have lf configured to use the default ratio of 1:2:3. This was already fixed in my last PR.