thimc / lfimg

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

how does `lfrun` work? #44

Open apprehensions opened 2 years ago

apprehensions commented 2 years ago

i cannot seem to understand how the script works.

benedikt-bartscher commented 2 years ago

Please specify what exactly you don't understand

apprehensions commented 2 years ago

the entire script?? thats why i asked

cv1618 commented 1 year ago

lfrun needs to be in a $PATH directory, the quickest and easiest is to just move it to /usr/local/bin

sudo mv lfrun /usr/local/bin

Then you need to create a shell alias so that when you type lf it executes lfrun instead

Open ~/.bashrc (or whatever shell you use)with a text editor and enter

alias lf="lfrun"

As far as the script itself it's opening lf in a wrapper script that sets up the environment for ueberzug to display images