Add CLI cheatsheet script

This commit is contained in:
hasecilu 2024-08-27 14:17:29 -06:00 committed by Fini
parent c4d714e126
commit 2025f40362
2 changed files with 18 additions and 0 deletions

3
.editorconfig Normal file
View file

@ -0,0 +1,3 @@
[*.sh]
indent_style = space
indent_size = 2

15
bin/scripts/cheatsheet.sh Executable file
View 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