[download]

local/bin/nerdfonts

   1 #!/bin/bash
   2 #         ░███████
   3 #       ░███████       D O T F I L E S
   4 #       ░███████       N E R D F O N T S
   5 #    ░█████████████
   6 #       ░███████
   7 #       ░███████       LGPL <http://www.gnu.org/licenses/>
   8 #       ░██  ░██
   9 #       ░██  ░██   (C) 2019-2020 Alexey Gagin <http://www.lexa.by/dotfiles/>
  10 
  11 f=~/.cache/nerdfonts
  12 
  13 [[ ! -f $f ]] &&
  14 curl -s https://www.nerdfonts.com/cheat-sheet |
  15 grep 'class-name">nf-' | tr '<>' '\t\t' | cut -f 3,7 |
  16 while read n s; do printf '%b %s\n' "\u$s" "$n"; done > $f
  17 
  18 cat $f