mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-06 21:49:40 +02:00
66ae03de2e
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
20 lines
576 B
Bash
Executable File
20 lines
576 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Nerd Fonts Version: 3.2.1
|
|
# Script Version: 1.0.0
|
|
#
|
|
# Search for a glyph by part of its name in all patchsets
|
|
# Usage: ./cheatsheet.sh divider
|
|
|
|
# Get script directory to set source and target dirs relative to it
|
|
sd="$( cd -- "$(dirname "${0}")" >/dev/null 2>&1 || exit ; pwd -P )"
|
|
|
|
# shellcheck disable=SC1091 # Do not pull in the sourced file
|
|
source "${sd}/lib/i_all.sh"
|
|
|
|
# Search the key on the declared variables
|
|
for glyph in ${!i_*}; do
|
|
if [[ "${glyph}" == *"${1}"* ]]; then
|
|
printf "%s\t%x\t%s\n" "${!glyph}" "'${!glyph}'" "${glyph}"
|
|
fi
|
|
done
|