FreeBSD 11 here. knoba – XFontPaths.sh – 2016 (link below)
~§~
Output file.
~§~
File attributes (-rwxr-x—) “sh XFontPaths.sh” to execute.
~§~
#!/bin/sh ls -d /usr/local/share/fonts/*/ > ~/fontpath.txt; sed -e 's/^/zFontPath "/' ~/fontpath.txt > ~/afontpath.txt; tr 'z' '\t' ~/bfontpath.txt; sed -e "s|$|\"|" ~/bfontpath.txt > ~/xfontpath.txt rm ~/fontpath.txt; rm ~/afontpath.txt; rm ~/bfontpath.txt;
~§~
FreeBsd – Unix-like operating system
Debian – Linux operating system
GNU – Operating system & software
•••