Skip to content

Instantly share code, notes, and snippets.

@mxlian
Created September 1, 2015 09:00
Show Gist options
  • Save mxlian/33c279b2b0ae0492793d to your computer and use it in GitHub Desktop.
Save mxlian/33c279b2b0ae0492793d to your computer and use it in GitHub Desktop.
Install Hack Typeface on Ubuntu/Debian
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