my-env/install/jbmono

22 lines
644 B
Plaintext
Raw Normal View History

2023-04-12 09:00:41 +00:00
#!/bin/bash
##makedesc: Install JetBrains Mono fonts
2023-04-14 04:06:40 +00:00
source `dirname $0`/../helpers || exit 255
2023-04-12 09:00:41 +00:00
# https://www.jetbrains.com/lp/mono/#how-to-install
2024-07-31 14:44:01 +00:00
# https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
2023-04-12 09:00:41 +00:00
2023-04-12 11:06:42 +00:00
title
2023-04-14 04:06:40 +00:00
2023-04-12 11:06:42 +00:00
require unzip
2023-04-12 09:00:41 +00:00
mkdir -p "$HOME/install/jbmono" "$HOME/.local/share/fonts/"
2023-04-12 11:06:42 +00:00
download "https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip" "$HOME/install/jbmono.zip" && \
2023-04-12 09:00:41 +00:00
unzip -oj "$HOME/install/jbmono.zip" "fonts/ttf/*.ttf" -d "$HOME/.local/share/fonts/" && \
fc-cache -vf "$HOME/.local/share/fonts/"
2023-04-12 14:11:17 +00:00
[ $? = 0 ] && {
echo
success "JetBrains Mono fonts installed!"
echo
}