Skip to content

Instantly share code, notes, and snippets.

@jarmitage
Created November 24, 2018 19:04
Show Gist options
  • Select an option

  • Save jarmitage/5d445dd63b1daa9a2547ef75c1b49ab6 to your computer and use it in GitHub Desktop.

Select an option

Save jarmitage/5d445dd63b1daa9a2547ef75c1b49ab6 to your computer and use it in GitHub Desktop.
Homebrew cask fonts: install all fonts not found
while read p; do
f="${p//font-/}*"
f="${f//-}"
# echo "$f"
if [[ -z `find /Users/xxx/Library/Fonts -iname "$f"` ]]; then
echo "not found: $f"
brew cask install "$p"
else
echo "found: $f"
fi
done <fonts.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment