[sh] Add easy font listing alias

Added `fontfamilies` alias which tries to remove duplicate entries from
the `fc-list` command and display them. Can be used for easy finding of
installed font-families, thus the name.
This commit is contained in:
Marty Oehme 2020-05-27 20:55:20 +02:00
parent d96870eadc
commit 7c78936e5b
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -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]++'
}