In trying to figure out what FiraCode font I have installed on my machine and what it is called, I came across this StackOverflow answer which shares the following one-liner:
$ fc-list | awk '{$1=""}1' | cut -d: -f1 | sort | uniqThis uses fc-list to get the names of all the fonts available on your
machine. This seems to work on both Linux and Mac. Through a series of awk,
cut, and sort | uniq, this command produces a clean, easily-browsed list
of fonts.
I like to take this a step further by piping it all to fzf where I can then
narrow down the output to just lines that match FiraCode.
$ fc-list | awk '{$1=""}1' | cut -d: -f1 | sort | uniq | fzfSee also system_profiler SPFontsDataType.