diff --git a/sh/.config/sh/alias.d/fontlist.sh b/sh/.config/sh/alias.d/fontlist.sh new file mode 100644 index 0000000..10281f5 --- /dev/null +++ b/sh/.config/sh/alias.d/fontlist.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +# +# list each individual font family installed +# without doing all the duplicate doo-hop of fc-list + +# alias fonts='fc-list -f ''%{family}\n'' | awk ''!x[$0]++''' + +fontfamilies() { + fc-list -f '%{family}\n' | awk '!x[$0]++' +}