Created
July 17, 2021 13:47
-
-
Save rany2/1ca678ccb18b54391074f846bb7d222d to your computer and use it in GitHub Desktop.
Install Material Design Icons to user font directory on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -uex | |
install_path="${XDG_DATA_HOME:-$HOME/.local/share}/fonts/material-design-icons" | |
url_prefix="https://raw.githubusercontent.com/google/material-design-icons/master/font" | |
fonts="MaterialIcons-Regular.ttf MaterialIconsOutlined-Regular.otf MaterialIconsRound-Regular.otf" | |
fonts="$fonts MaterialIconsSharp-Regular.otf MaterialIconsTwoTone-Regular.otf" | |
for font in $fonts | |
do | |
wget \ | |
--no-verbose \ | |
--directory-prefix="$install_path" \ | |
--output-document="$font" \ | |
"$url_prefix/$font" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment