summaryrefslogtreecommitdiff
path: root/af.sh
diff options
context:
space:
mode:
authorManuel Traut <manut@ford.mecka.net>2019-08-07 22:47:19 +0200
committerManuel Traut <manut@ford.mecka.net>2019-08-07 22:47:19 +0200
commit120eccbfa839a0723f6ffeb9b80742bc960a3d41 (patch)
treecb3594a3e068fc89dc55a34a8302fb7887bc83bc /af.sh
initial version from ford
Signed-off-by: Manuel Traut <manut@ford.mecka.net>
Diffstat (limited to 'af.sh')
-rwxr-xr-xaf.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/af.sh b/af.sh
new file mode 100755
index 0000000..c703744
--- /dev/null
+++ b/af.sh
@@ -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")