new jetbrains mono fonts installer

master^2
Anthony Axenov 2023-04-12 17:00:41 +08:00
parent acc7907a72
commit c261d62b36
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
1 changed files with 22 additions and 0 deletions

22
install/jbmono 100755
View File

@ -0,0 +1,22 @@
#!/bin/bash
##makedesc: Install JetBrains Mono fonts
# https://www.jetbrains.com/lp/mono/#how-to-install
echo
echo "==============================================="
echo "Installing JetBrains Mono fonts..."
echo "==============================================="
echo
installed() {
command -v "$1" >/dev/null 2>&1
}
! installed wget && sudo apt install wget
! installed unzip && sudo apt install unzip
mkdir -p "$HOME/install/jbmono" "$HOME/.local/share/fonts/"
wget https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip -O "$HOME/install/jbmono.zip" && \
unzip -oj "$HOME/install/jbmono.zip" "fonts/ttf/*.ttf" -d "$HOME/.local/share/fonts/" && \
fc-cache -vf "$HOME/.local/share/fonts/"