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

set -e

DIR=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")

echo 'Bundling brew...'
brew update
brew bundle
brew cleanup
echo

echo 'Linking dotfiles...'
source setup-dotfiles.sh
echo

echo 'Bundling zsh plugins...'
antibody bundle < $DIR/.zsh_plugins > ~/.zsh_plugins
antibody update<commit_msg>Ensure Xcode and Homebrew installed<commit_after>#!/usr/bin/env bash

set -e

DIR=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")

hash gcc 2>/dev/null || {
  echo >&2 "You need to install Xcode"
  exit 1
}

hash brew 2>/dev/null || {
  echo >&2 "You need to install Homebrew"
  exit 1
}

echo 'Bundling brew...'
brew update
brew bundle
brew cleanup
echo

echo 'Linking dotfiles...'
source setup-dotfiles.sh
echo

echo 'Bundling zsh plugins...'
antibody bundle < $DIR/.zsh_plugins > ~/.zsh_plugins
antibody update
{'fraction_non_alphanumeric': 0.16933638443935928, 'fraction_numerical': 0.009153318077803204, 'mean_word_length': 3.4871794871794872, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2039397', 'n_tokens_mistral': 333, 'n_tokens_neox': 316, 'n_words': 103}