mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
Add CLI cheatsheet script
This commit is contained in:
parent
c4d714e126
commit
2025f40362
2 changed files with 18 additions and 0 deletions
3
.editorconfig
Normal file
3
.editorconfig
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[*.sh]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
15
bin/scripts/cheatsheet.sh
Executable file
15
bin/scripts/cheatsheet.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Nerd Fonts Version: 3.2.1
|
||||||
|
# Script Version: 1.0.0
|
||||||
|
#
|
||||||
|
# Search for a glyph by its name in all patched fonts
|
||||||
|
# Usage: ./cheatsheet.sh divider
|
||||||
|
|
||||||
|
source ./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
|
Loading…
Reference in a new issue