<commit_before>#!/usr/bin/env bash


# ------------------------------------------------------------------------------
# Install Native Mac Applications
# ------------------------------------------------------------------------------



# Brew Cask Setup
# ------------------------------------------------------------------------------

echo "Tapping caskroom formulae and installing Brew Cask..."
brew tap caskroom/cask
brew tap caskroom/versions     
brew install caskroom/cask/brew-cask



# Applications
# ------------------------------------------------------------------------------

applications=(

  # Development
  iterm2
  imageoptim
  transmit
  virtualbox
  vagrant

  # Productivity
  alfred
  dropbox
  evernote
  hazel

  # Browswers
  opera
  firefox
  google-chrome
  google-chrome-canary

  # Miscellaneous
  beamer
  vlc
  handbrake
  transmission
  adobe-creative-cloud
  # amazon-cloud-drive (issues with installation)
  amazon-music
  send-to-kindle

)



# Install Applications
# ------------------------------------------------------------------------------
# The applications will be installed in /Applications instead of the default
# Cask directory location in /Users/$user/Applications.

echo "Installing applications..."
brew cask install --appdir="/Applications" ${applications[@]} <commit_msg>Including command to update Alfred links once installed.<commit_after>#!/usr/bin/env bash


# ------------------------------------------------------------------------------
# Install Native Mac Applications
# ------------------------------------------------------------------------------



# Brew Cask Setup
# ------------------------------------------------------------------------------

echo "Tapping caskroom formulae and installing Brew Cask..."
brew tap caskroom/cask
brew tap caskroom/versions     
brew install caskroom/cask/brew-cask



# Applications
# ------------------------------------------------------------------------------

applications=(

  # Development
  coderunner
  iterm2
  imageoptim
  transmit
  virtualbox
  vagrant

  # Productivity
  alfred
  dropbox
  evernote
  hazel

  # Browswers
  opera
  firefox
  google-chrome
  google-chrome-canary

  # Miscellaneous
  beamer
  vlc
  handbrake
  transmission
  adobe-creative-cloud
  # amazon-cloud-drive (issues with installation)
  amazon-music
  send-to-kindle

)



# Install Applications
# ------------------------------------------------------------------------------
# The applications will be installed in /Applications instead of the default
# Cask directory location in /Users/$user/Applications.

echo "Installing applications..."
brew cask install --appdir="/Applications" ${applications[@]} 



# Update Alfred Search Scope
# ------------------------------------------------------------------------------
# Applications installed using Cask are symlinked to the /Applications folder, 
# so we need to update Alfred's search path to include the directory where these
# applications can actually be found.

echo "Updating Alfred search scope..."
brew cask alfred link
{'fraction_non_alphanumeric': 0.33062418725617687, 'fraction_numerical': 0.0006501950585175553, 'mean_word_length': 1.282640949554896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2165672', 'n_tokens_mistral': 720, 'n_tokens_neox': 677, 'n_words': 214}