Created
September 1, 2015 09:00
-
-
Save mxlian/33c279b2b0ae0492793d to your computer and use it in GitHub Desktop.
Install Hack Typeface on Ubuntu/Debian
This file contains hidden or 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
DEST_DIR=~/.fonts/hack_typeface | |
mkdir -p $DEST_DIR | |
# Check if you have unzip, if not install | |
which unzip >/dev/null || (echo "INFO: I need to install unzip"; sudo apt-get install unzip) | |
# Download font | |
wget --directory-prefix $DEST_DIR https://github.com/chrissimpkins/Hack/releases/download/v2.010/Hack-v2_010-otf.zip | |
# Decompress | |
unzip $DEST_DIR/Hack-*.zip -d $DEST_DIR | |
# Clean zip file | |
rm $DEST_DIR/Hack-*.zip | |
# Rebuild font information | |
sudo fc-cache -f -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment