blob: ea96873973c504135dedf97977cd23756342ccce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
set -e
FONT_DIR="$HOME/.local/share/fonts"
TEMP_DIR=$(mktemp -d)
mkdir -p "$FONT_DIR"
pushd $TEMP_DIR
curl -s 'https://api.github.com/repos/be5invis/Iosevka/releases/latest' | \
jq -r ".assets[] | .browser_download_url" | \
grep PkgTTC-Iosevka | \
xargs -n 1 curl -L -O --fail --silent --show-error
for f in *.zip; do
unzip "$f"
done
mv *.ttc "$FONT_DIR/"
fc-cache -f -v "$FONT_DIR"
popd
rm -rf "$TEMP_DIR"
echo "Iosevka fonts have been installed."
|