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

# Install command-line tools using Homebrew.

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
  echo "Installing homebrew..."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Install tmux
brew install tmux
brew install reattach-to-user-namespace


# Install Cask
brew install caskroom/cask/brew-cask

# Core casks
brew cask install --appdir="/Applications" alfred
brew cask install --appdir="~/Applications" iterm2

# Development tool casks
brew cask install --appdir="/Applications" sublime-text3

# Misc casks
brew cask install --appdir="/Applications" google-chrome

# Link cask apps to Alfred
brew cask alfred link

# Install Macvim
brew install vim && brew install macvim
brew link --overwrite macvim

# Remove outdated versions from the cellar.
brew cleanup<commit_msg>add macvim<commit_after>#!/usr/bin/env bash

# Install command-line tools using Homebrew.

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
  echo "Installing homebrew..."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# 更新和升级 homebrew
brew tap homebrew/versions
brew update
brew upgrade --all

# Install tmux
brew install tmux
brew install reattach-to-user-namespace
# Install Macvim
brew install vim && brew install macvim
brew link --overwrite macvim


# 安装 Cask
brew install caskroom/cask/brew-cask
# 更新和升级 cask
brew tap caskroom/versions
brew cask update

# Core casks
brew cask install --appdir="/Applications" alfred
brew cask install --appdir="~/Applications" iterm2
# Development tool casks
brew cask install --appdir="/Applications" sublime-text3
# Misc casks
brew cask install --appdir="/Applications" google-chrome
# Link cask apps to Alfred
brew cask alfred link

# Remove outdated versions from the cellar.
brew cleanup
brew cask cleanup
{'fraction_non_alphanumeric': 0.0975816716164616, 'fraction_numerical': 0.005091217649554518, 'mean_word_length': 4.1938325991189425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7157442', 'n_tokens_mistral': 776, 'n_tokens_neox': 723, 'n_words': 283}