<commit_before>#!/bin/sh

# OSX-only stuff. Abort if not OSX.
is_osx || return 1

# Exit if Homebrew is not installed.
[[ ! "$(type -P brew)" ]] && e_error "Brew casks need Homebrew to install." && return 1

# Ensure the cask keg and recipe are installed.
kegs=(caskroom/cask caskroom/versions)
brew_tap_kegs
recipes=(brew-cask)
brew_install_recipes

# Exit if, for some reason, cask is not installed.
[[ ! "$(brew ls --versions brew-cask)" ]] && e_error "Brew-cask failed to install." && return 1

# Hack to show the first-run brew-cask password prompt immediately.
brew cask info this-is-somewhat-annoying 2>/dev/null


# Homebrew casks
casks=(
  # Applications
  bettertouchtool
  burn
  chronosync
  cloudytabs
  commander-one
  #cyberduck
  #dockertoolbox  ## -> Docker.app Mac beta
  devonthink-pro-office
  flux
  #google-chrome ## -> need to install manuall, otherwise 1 password ext fails
  google-drive
  iterm2
  java
  java7
  yujitach-menumeters
  omnidisksweeper
  sequel-pro
  skype
  sourcetree
  sublime-text3
  vagrant
  #vmware-fusion ## -> vmware fusion policy sucks, going to El Capitan requires to buy 8 because of USB issues
  virtualbox
  virtualbox-extension-pack
  # Quick Look plugins
  betterzipql
  qlcolorcode
  qlmarkdown
  qlprettypatch
  qlstephen
  quicklook-csv
  quicklook-json
  quicknfo
  suspicious-package
  webpquicklook
)

# Install Homebrew casks.
casks=($(setdiff "${casks[*]}" "$(brew cask list 2>/dev/null)"))
if (( ${#casks[@]} > 0 )); then
  e_header "Installing Homebrew casks: ${casks[*]}"
  for cask in "${casks[@]}"; do
    brew cask install --appdir="/Applications" $cask
  done<commit_msg>Remove obsolete stuff<commit_after>#!/bin/sh

# OSX-only stuff. Abort if not OSX.
is_osx || return 1

# Exit if Homebrew is not installed.
[[ ! "$(type -P brew)" ]] && e_error "Brew casks need Homebrew to install." && return 1

# Ensure the cask keg and recipe are installed.
kegs=(caskroom/cask caskroom/versions)
brew_tap_kegs
recipes=(brew-cask)
brew_install_recipes

# Exit if, for some reason, cask is not installed.
[[ ! "$(brew ls --versions brew-cask)" ]] && e_error "Brew-cask failed to install." && return 1

# Hack to show the first-run brew-cask password prompt immediately.
brew cask info this-is-somewhat-annoying 2>/dev/null


# Homebrew casks
casks=(
  # Applications
  bettertouchtool
  burn
  chronosync
  cloudytabs
  commander-one
  #cyberduck
  #dockertoolbox  ## -> Docker.app Mac beta
  #google-chrome ## -> need to install manuall, otherwise 1 password ext fails
  google-drive
  iterm2
  java
  yujitach-menumeters
  omnidisksweeper
  sequel-pro
  skype
  sourcetree
  sublime-text3
  vagrant
  virtualbox
  virtualbox-extension-pack
  # Quick Look plugins
  betterzipql
  qlcolorcode
  qlmarkdown
  qlprettypatch
  qlstephen
  quicklook-csv
  quicklook-json
  quicknfo
  suspicious-package
  webpquicklook
)

# Install Homebrew casks.
casks=($(setdiff "${casks[*]}" "$(brew cask list 2>/dev/null)"))
if (( ${#casks[@]} > 0 )); then
  e_header "Installing Homebrew casks: ${casks[*]}"
  for cask in "${casks[@]}"; do
    brew cask install --appdir="/Applications" $cask
  done
{'fraction_non_alphanumeric': 0.11164122137404581, 'fraction_numerical': 0.006361323155216285, 'mean_word_length': 3.801526717557252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, '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': '3283371', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1110, 'n_words': 327}