<commit_before>#!/bin/sh -eu

if [ "$(uname -s)" != 'Darwin' ]; then
	echo 'This script only works on Mac OS!'
	exit 1
fi

if ! command -v brew; then
	echo 'Installing homebrew...'
	/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi

brew upgrade --ignore-pinned

brew tap homebrew/cask-fonts
brew tap skyjake/lagrange

brew install --quiet \
	bat \
	cmake \
	coreutils \
	fd \
	fish \
	git \
	git-lfs \
	go \
	lagrange \
	mage \
	mosh \
	neovim \
	pandoc \
	pngquant \
	pwgen \
	ripgrep \
	shellcheck \
	tmux \
	tree \
	;

brew cask upgrade

brew cask install \
	dash \
	drawio \
	font-fira-code \
	font-source-code-pro \
	keepingyouawake \
	meld \
	uhk-agent \
	viscosity \
	;<commit_msg>mac: add golangci-lint; refactor pkg script<commit_after>#!/bin/sh -eu

if [ "$(uname -s)" != 'Darwin' ]; then
	echo 'This script only works on Mac OS!'
	exit 1
fi

if ! command -v brew; then
	echo 'Installing homebrew...'
	/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi

brew upgrade --formula --ignore-pinned

brew tap homebrew/cask-drivers
brew tap homebrew/cask-fonts
brew tap skyjake/lagrange

brew install --formula --quiet \
	bat \
	cmake \
	coreutils \
	fd \
	fish \
	git \
	git-lfs \
	go \
	golangci-lint \
	mage \
	mosh \
	neovim \
	pandoc \
	pngquant \
	pwgen \
	ripgrep \
	shellcheck \
	tmux \
	tree \
	;

brew upgrade --cask

brew install --cask --quiet \
	dash \
	drawio \
	font-fira-code \
	font-source-code-pro \
	keepingyouawake \
	lagrange \
	meld \
	uhk-agent \
	viscosity \
	;
{'fraction_non_alphanumeric': 0.13270440251572327, 'fraction_numerical': 0.0012578616352201257, 'mean_word_length': 2.4437229437229435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4586939', 'n_tokens_mistral': 678, 'n_tokens_neox': 649, 'n_words': 166}