[download]

local/bin/nerdfont

   1 #!/bin/bash
   2 
   3 f=~/.cache/${0##*/}
   4 
   5 [[ -s $f ]] ||
   6 curl -sf https://www.nerdfonts.com/cheat-sheet |
   7 grep 'class-name">nf-' | tr '<>' '\t\t' | cut -f 3,7 > $f
   8 
   9 while read name icon; do
  10     printf '%b %s\n' "\u$icon" "${name#nf-}"
  11 done < $f