Skip to content

Instantly share code, notes, and snippets.

@max
Last active April 24, 2019 17:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max/c592f4d9d46a7063445f9b53fc7ed90b to your computer and use it in GitHub Desktop.
Save max/c592f4d9d46a7063445f9b53fc7ed90b to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
set -e
echo "Fetching fonts from Apple..."
curl -o /tmp/SF-Font.dmg https://developer.apple.com/design/downloads/SF-Font.dmg
hdiutil attach -nobrowse -quiet -noverify -noautoopen -mountpoint /Volumes/SF-Font /tmp/SF-Font.dmg
echo "Installing fonts..."
cp -R /Volumes/SF-Font/. /Library/Fonts/
cp -R /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/. /Library/Fonts/
echo "Cleaning up..."
hdiutil detach /Volumes/SF-Font/
@max
Copy link
Author

max commented Apr 24, 2019

Install (at your own risk)

bash <(curl -s https://gist.githubusercontent.com/max/c592f4d9d46a7063445f9b53fc7ed90b/raw/af8edfdc3060fc78e6525513f2a6aec14078b8a2/i.sh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment