Created
May 23, 2025 04:41
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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