You are not logged in.
Pages: 1
The de facto approach to enabling icons in lf is using nerdfont or by patching your favorite monospace font with fonts patcher.
I don't like either approach, former doesn't have the fonts I want, while latter messes with the font files (in my particular case, it messes with the line height) and appending huge sets of icon fonts to a monospace font feels hacky.
However, there is a solution: Unicode!
These days Unicode includes huge number of emojis and images, and I picked a collection of them to represent most common file types.
Source: https://github.com/karabaja4/arch/blob/ … f/icons.sh
Obviously, to make this work, you need a terminal emulator that properly supports Unicode. To use, copy or source the above script to your shell rc.
Last edited by karabaja4 (2022-07-23 08:36:19)
Offline
Very nice, I may use that. Out of curiosity: why a glass of red wine for .exe?
Offline
Pages: 1