diff options
| author | Manuel Traut <manut@ford.mecka.net> | 2019-08-07 22:47:19 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@ford.mecka.net> | 2019-08-07 22:47:19 +0200 |
| commit | 120eccbfa839a0723f6ffeb9b80742bc960a3d41 (patch) | |
| tree | cb3594a3e068fc89dc55a34a8302fb7887bc83bc /af.sh | |
initial version from ford
Signed-off-by: Manuel Traut <manut@ford.mecka.net>
Diffstat (limited to 'af.sh')
| -rwxr-xr-x | af.sh | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/bin/sh +# Userland mode (~$USER/), (~/). + +# ~/.fonts is now deprecated and that +#FONT_HOME=~/.fonts +# ~/.local/share/fonts should be used instead +FONT_HOME=~/.local/share/fonts + +echo "installing fonts at $PWD to $FONT_HOME" +mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro" +# find "$FONT_HOME" -iname '*.ttf' -exec echo '{}' \; + +(git clone \ + --branch release \ + --depth 1 \ + 'https://github.com/adobe-fonts/source-code-pro.git' \ + "$FONT_HOME/adobe-fonts/source-code-pro" && \ +fc-cache -f -v "$FONT_HOME/adobe-fonts/source-code-pro") |
