<commit_before>#!/bin/sh

# inspired by https://github.com/mathiasbynens/dotfiles/blob/master/brew.sh
# and http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac

# Install command-line tools using Homebrew.

if test ! $(which brew); then
  echo "Installing homebrew..."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Make sure we're using the latest Homebrew.
brew update

# Upgrade any already-installed formulae.
brew upgrade

# Install GNU core utilities (those that come with OS X are outdated)
# Don't forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils

# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils

# Install zsh
brew install zsh

# Install more recent versions of some OSX tools.
brew install vim --override-system-vi
brew install homebrew/dupes/grep
brew install homebrew/dupes/openssh --with-keychain-support
brew install homebrew/dupes/screen

binaries=(
  git
  hub
  postgresql
  redis
  tree
  watch
)
brew install ${binaries[@]}

# Install brew services
brew tap homebrew/boneyard

# Install Mac apps
brew tap caskroom/cask

# Access to betas for Chrome Canary, Sublime Text, etc
brew tap caskroom/versions

casks=(
  alfred
  atom
  caffeine
  dropbox
  firefox
  flux
  google-chrome
  google-backup-and-sync
  imageoptim
  iterm2
  postico
  recordit
  skitch
  slack
  spotify
  the-unarchiver
)
brew cask install ${casks[@]}

echo "Can't install:

ColorSnapper
Pixelmator
Pixen
Reeder
Things

with casks. Use the Mac App Store."

# Ensure that homebrew-cask apps are available to alfred
brew cask alfred link

# Install some fonts
brew tap caskroom/fonts

fonts=(
  font-alfa-slab-one
  font-droid-sans
  font-fauna-one
  font-merriweather
  font-merriweather-sans
  font-muli
  font-oswald
  font-playfair-display
  font-playfair-display-sc
  font-podkova
  font-poller-one
  font-raleway
  font-roboto
  font-roboto-slab
  font-yanone-kaffeesatz
  font-yeseva-one
)

brew cask install ${fonts[@]}
<commit_msg>Modernize homebrew settings<commit_after>#!/bin/sh

# inspired by https://github.com/mathiasbynens/dotfiles/blob/master/brew.sh
# and http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac

# Install command-line tools using Homebrew.

if test ! $(which brew); then
  echo "Installing homebrew..."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Make sure we're using the latest Homebrew.
brew update

# Upgrade any already-installed formulae.
brew upgrade

# Install GNU core utilities (those that come with OS X are outdated)
# Don't forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils

# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils

# Install zsh
brew install zsh zsh-completions

# Install more recent versions of some OSX tools.
brew install homebrew/dupes/grep
brew install homebrew/dupes/openssh --with-keychain-support
brew install homebrew/dupes/screen

binaries=(
  git
  hub
  nvim
  postgresql
  redis
  tree
  watch
)
brew install ${binaries[@]}

casks=(
  alfred
  atom
  caffeine
  dropbox
  firefox
  flux
  google-chrome
  google-backup-and-sync
  hyper
  imageoptim
  iterm2
  postico
  recordit
  skitch
  slack
  spotify
  the-unarchiver
)
brew cask install ${casks[@]}

echo "Can't install:

ColorSnapper
Pixelmator
Pixen
Reeder
Things

with casks. Use the Mac App Store."

# Install some fonts
brew tap caskroom/fonts

fonts=(
  font-alfa-slab-one
  font-droidsansmono-nerd-font
  font-fauna-one
  font-merriweather
  font-merriweather-sans
  font-muli
  font-oswald
  font-playfair-display
  font-playfair-display-sc
  font-podkova
  font-poller-one
  font-raleway
  font-roboto
  font-roboto-slab
  font-yanone-kaffeesatz
  font-yeseva-one
)

brew cask install ${fonts[@]}

{'fraction_non_alphanumeric': 0.09535951045385008, 'fraction_numerical': 0.0005099439061703213, 'mean_word_length': 3.7841463414634147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1957681', 'n_tokens_mistral': 1420, 'n_tokens_neox': 1364, 'n_words': 387}