From 9f40ad91874ead192eb9e5545b04e230630b6b72 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 11 May 2018 11:01:59 +0200 Subject: [PATCH] FiraCode --- install-firacode.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 install-firacode.sh diff --git a/install-firacode.sh b/install-firacode.sh new file mode 100755 index 0000000..7b703a2 --- /dev/null +++ b/install-firacode.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +set -ex + +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" 1>&2 + sudo "$0" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" + exit 0 +fi + +# In download.sh +for type in Bold Light Medium Regular Retina; do + wget -O /usr/share/fonts/TTF/FiraCode-${type}.ttf \ + "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true"; +done