Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created May 23, 2025 04:41
Show Gist options
  • Save jasonm23/7ebf6cb7ff6b7142721ba3634499e25c to your computer and use it in GitHub Desktop.
Save jasonm23/7ebf6cb7ff6b7142721ba3634499e25c to your computer and use it in GitHub Desktop.
Quick curl, jq, fzf script to search for a Nerd Font icon glyph
#!/bin/bash
curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json \
| jq -r 'to_entries | map(select(.key != "METADATA")) | .[] | "\"\(.key)\": \(.value | @json),"' \
| sed 's/^/ /' \
| awk 'BEGIN {print "export const NerdFontGlyphs = {"} {print} END {print "}"}' \
> nerd-font-glyphs.js
#!/bin/bash
curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json \
| jq -r 'to_entries | map(select(.key != "METADATA")) | .[] |
"\(.value.code)\n\(.value.char) \(.key)"' \
| fzf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment