Want to try Hack Typeface? Use the following gist:
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
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 |
Happy coding!