Hello,When using one of the Nerd Fonts in the terminal, you can get glyphs (icons) rendered. The attached patch enables a flavor for sysutils/nnn that will render mime types icons next to file listing. An example can be seen there: https://i.imgur.com/kOld6HT.gif
Tested on OpenBSD/7.2-CURRENT/amd64, using xterm(1) and xfce4-terminal(1). Regards, Joel C.
Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/nnn/Makefile,v retrieving revision 1.22 diff -u -p -u -p -r1.22 Makefile --- Makefile 24 Nov 2022 10:25:40 -0000 1.22 +++ Makefile 28 Dec 2022 11:59:25 -0000 @@ -3,6 +3,7 @@ COMMENT = the missing terminal file bro V = 4.7 DISTNAME = nnn-v${V} PKGNAME = nnn-${V} +REVISION = 1 CATEGORIES = sysutils @@ -26,6 +27,13 @@ RUN_DEPENDS = textproc/gsed MAKE_FLAGS = CFLAGS_OPTIMIZATION= FAKE_FLAGS = MANPREFIX="$(PREFIX)/man" \ PREFIX="${PREFIX}" + +FLAVORS = nerd +FLAVOR ?= + +.if ${FLAVOR:Mnerd} +MAKE_FLAGS += O_NERD=1 +.endif USE_GMAKE = Yes NO_TEST = Yes