diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..b9a948f40 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*.sh] +indent_style = space +indent_size = 2 diff --git a/bin/scripts/cheatsheet.sh b/bin/scripts/cheatsheet.sh new file mode 100755 index 000000000..5c9986f4e --- /dev/null +++ b/bin/scripts/cheatsheet.sh @@ -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