mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 05:42:03 +03:00
54e92b6858
I generated nerdfonts_data.rs with this shell script; it uses `i_all.sh` from the nerdfonts repo to get the base mapping: ``` source ./lib/i_all.sh echo "//! Data mapping nerd font symbol names to their char codepoints" echo "pub const NERD_FONT_GLYPHS: &[(&str, char)] = &[" for var in "${!i@}"; do # trim 'i_' prefix glyph_name=${var#*_} glyph_char=${!var} glyph_code=$(printf "%x" "'$glyph_char'") echo "(\"$glyph_name\", '\u{$glyph_code}'), // $glyph_char" done echo "];" ``` Then intent is to use it in wezterm: ``` local wezterm = require 'wezterm' wezterm.log_info(wezterm.nerdfonts.dev_mozilla) ``` |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |