Skip to content

Commit 5a60b74

Browse files
committed
README: update shell examples
1 parent 38c9c66 commit 5a60b74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ agave-r-autohinted.ttf [2443]
106106

107107
Randomly display a preview every ten seconds:
108108

109-
`while (clear); do fnt preview $(fnt search | shuf -n1 | sed "s,google-,,;s,fonts-,,"); sleep 10; done`
109+
`while (clear); do fnt preview $(fnt search | shuf -n1) ; sleep 10; done`
110110

111-
If you want to install all available fonts, you could run something like this:
111+
If you want to install all available fonts from Debian, you could run something like this:
112112

113-
`for a in $(fnt search |grep ^fonts- |sed s,fonts-,,); do fnt install $a; done`
113+
`while read -r font; do echo fnt install $font ; done < <(fnt search |grep -v "^google")`
114114

115115
You end up with ~2700 font files (~500 fonts), taking up 1.6 GB.
116116

117-
`for a in $(fnt search |grep ^google- |sed s,google-,,); do fnt install $a; done`
117+
`for a in $(fnt search |grep "^google-"); do fnt install $a; done`
118118

119119
You end up with ~4200 font files (~1600 fonts), taking up 1.4 GB.
120120

0 commit comments

Comments
 (0)