<commit_before>#!/bin/bash
#
# This script sets up an OSX machine for my general happiness. Everything is
# idempotent, so it's safe to run repeatedly.
#

# Abort on error.
set -e

# Set the ENV variable from where this script is located.
ENVPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Write the location of this repo to ~/.envpath so that other scripts can find it.
echo ~/.envpath = \"$ENVPATH\"
echo "$ENVPATH" > "$HOME/.envpath"

# Make sure OSX is configured nicely.
$ENVPATH/bin/env-osx-defaults

# Install Homebrew, a package manager for OSX we'll use to get other stuff.
# http://brew.sh
if ! hash brew 2> /dev/null
then
  echo Installing homebrew...
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Install coreutils, providing better versions of common unix utilities.
# https://www.gnu.org/software/coreutils/manual/html_node/
if ! hash gls 2> /dev/null
then
  echo Installing coreutils...
  brew install coreutils
fi

# Install grc, the generic colorizer for nice colors on a bunch of common utils.
# https://github.com/garabik/grc
if ! hash grc 2> /dev/null
then
  echo Installing grc...
  brew install grc
fi

# Install macvim, a pretty solid text editor.
if ! hash mvim 2> /dev/null
then
  echo Installing macvim...
  brew install macvim

  # Symlink the MacVim binary to `vim` so we get a newer version that's
  # compatible with all of the plugins and customizations.
  ln -s /usr/local/bin/mvim /usr/local/bin/vim
fi

# Install Vundle vim plugin manager.
if ! test -d ~/.vim/bundle/Vundle.vim
then
  echo Installing vundle...
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim<commit_msg>vim is now symlinked from brew<commit_after>#!/bin/bash
#
# This script sets up an OSX machine for my general happiness. Everything is
# idempotent, so it's safe to run repeatedly.
#

# Abort on error.
set -e

# Set the ENV variable from where this script is located.
ENVPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Write the location of this repo to ~/.envpath so that other scripts can find it.
echo ~/.envpath = \"$ENVPATH\"
echo "$ENVPATH" > "$HOME/.envpath"

# Make sure OSX is configured nicely.
$ENVPATH/bin/env-osx-defaults

# Install Homebrew, a package manager for OSX we'll use to get other stuff.
# http://brew.sh
if ! hash brew 2> /dev/null
then
  echo Installing homebrew...
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Install coreutils, providing better versions of common unix utilities.
# https://www.gnu.org/software/coreutils/manual/html_node/
if ! hash gls 2> /dev/null
then
  echo Installing coreutils...
  brew install coreutils
fi

# Install grc, the generic colorizer for nice colors on a bunch of common utils.
# https://github.com/garabik/grc
if ! hash grc 2> /dev/null
then
  echo Installing grc...
  brew install grc
fi

# Install macvim, a pretty solid text editor.
if ! hash mvim 2> /dev/null
then
  echo Installing macvim...
  brew install macvim
fi

# Install Vundle vim plugin manager.
if ! test -d ~/.vim/bundle/Vundle.vim
then
  echo Installing vundle...
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
{'fraction_non_alphanumeric': 0.11417079207920793, 'fraction_numerical': 0.003094059405940594, 'mean_word_length': 3.5407303370786516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '1474278', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1055, 'n_words': 399}