<commit_before>#!/bin/bash

set -ufo pipefail

# Options
mode=setup
primary=false

br=/usr/local/bin
gh=~/GitHub
secrets=~/.shellrc.local

script_dir=$(cd "$(dirname "$0")" && pwd)

homebrew_formulas=(
    "exa"
    "fd"
    "fish"
    "git"
    "htop"
    "jq"
    "ledger"
    "neovim:nvim"
    "oath-toolkit:oathtool"
    "python:python3"
    "ripgrep:rg"
    "shellcheck"
    "tldr"
    "tmux"
    "trash"
    "vim"
)

homebrew_casks=(
    "ballast"
    "dropbox:Dropbox"
    "iterm2:iTerm"
    "visual-studio-code:Visual Studio Code"
)

usage() {
    cat <<EOS
Usage: $(basename "$0") [options]

This script configures a new Mac with all the settings and software I want. It
can be run multiple times safely.<commit_msg>Allow custom homebrew prefix and install bat in setupmacos.sh<commit_after>#!/bin/bash

set -ufo pipefail

# Options
mode=setup
primary=false

br=$(brew --prefix)/bin
gh=~/GitHub
secrets=~/.shellrc.local

script_dir=$(cd "$(dirname "$0")" && pwd)

homebrew_formulas=(
    "bat"
    "exa"
    "fd"
    "fish"
    "git"
    "htop"
    "jq"
    "ledger"
    "neovim:nvim"
    "oath-toolkit:oathtool"
    "python:python3"
    "ripgrep:rg"
    "shellcheck"
    "tldr"
    "tmux"
    "trash"
    "vim"
)

homebrew_casks=(
    "ballast"
    "dropbox:Dropbox"
    "iterm2:iTerm"
    "visual-studio-code:Visual Studio Code"
)

usage() {
    cat <<EOS
Usage: $(basename "$0") [options]

This script configures a new Mac with all the settings and software I want. It
can be run multiple times safely.
{'fraction_non_alphanumeric': 0.14795244385733158, 'fraction_numerical': 0.005284015852047556, 'mean_word_length': 3.0945945945945947, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1592853', 'n_tokens_mistral': 625, 'n_tokens_neox': 601, 'n_words': 141}