dotfiles/gui/updatenerdfonticons.sh
2020-11-09 00:26:14 +08:00

11 lines
307 B
Bash

#!/bin/sh
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
[ -z "$1" ] && echo Usage: $0 path/to/nerdfont.git/bin/scrips/lib && exit 1
awk '/i=/ { print substr($1, 4, 1), substr($2, 0, index($2, "=") - 1) }' \
$1/i_{dev,fa,fae,iec,linux,material,oct,ple,pom,seti,weather}.sh > ~/.cache/icons