[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:
parent
d96870eadc
commit
7c78936e5b
1 changed files with 10 additions and 0 deletions
10
sh/.config/sh/alias.d/fontlist.sh
Normal file
10
sh/.config/sh/alias.d/fontlist.sh
Normal 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]++'
|
||||
}
|
Loading…
Reference in a new issue