Skip to content

Instantly share code, notes, and snippets.

@zspotter
Created July 11, 2025 18:51
Show Gist options
  • Save zspotter/9e38a4dc61d82f92e3955046aafe2db6 to your computer and use it in GitHub Desktop.
Save zspotter/9e38a4dc61d82f92e3955046aafe2db6 to your computer and use it in GitHub Desktop.
TUI for rendering, searching, and copying nerdfont icons. (requires jq and fzf)
#!/usr/bin/env bash
set -euo pipefail
glyph_list() {
curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json \
| jq -r '.METADATA as $m | del(.METADATA) | to_entries | sort_by(.key) | .[] | "\(.value.char)\t\(.key)"'
}
pbcopy_picker() {
fzf \
--reverse \
--delimiter=$'\t' \
--header="(enter to copy)" \
--bind "enter:execute(echo -n {1} | pbcopy)"
}
glyph_list | pbcopy_picker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment