As I'm always looking at ways to automate and backup my settings and configurations across the many different apps and service I use, one of the more recent additions to this has been downloading and installing fonts.
To do this is very simple with a combination of wget
and unzip
.
cd ~/Library/Fonts
wget https://github.com/JetBrains/JetBrainsMono/releases/download/v2.242/JetBrainsMono-2.242.zip -O JetBrainsMono.zip
unzip -jo JetBrainsMono.zip '*.ttf'
-j
means extract the files in the archive into the directory we are in without the directory structure-o
means overwrite the files without prompting if they existrm JetBrainsMono.zip
cd -
cd ~/Library/Fonts
wget https://github.com/JetBrains/JetBrainsMono/releases/download/v2.242/JetBrainsMono-2.242.zip -O JetBrainsMono.zip
unzip -jo JetBrainsMono.zip '*.ttf'
rm JetBrainsMono.zip
cd -