<commit_before># Provisioning a New Machine

New machines require two tasks to be done which are not part of the setup
script: installing (and using) Powerline-compatible fonts and using the
Solarized colorscheme. This configuration uses a zsh theme similar to Agnoster.
It also uses Powerline for vim and tmux. As a result, you'll need to install
patched fonts that support Powerline.

## MacOS

### Installing Powerline-compatible Fonts

There is a `fonts` directory that contains several fonts that work with
Powerline. You can install them by running the installation script in that
subdirectory.

```bash
cd ~/.dotfiles/new_machine/fonts
./install.sh
```

Next you will want to change the fonts in your iTerm profile. Go to the `Text`
tab in your current profile and pick an appropriate font.

### Solarized on iTerm

Import `Solarized Dark.itermcolors` as a colorscheme for iTerm. In the `Colors`
section of your profile, use the `Solarized Dark` preset. To get the directory
colors to work, you'll need to uncheck the `Draw bold text in bright colors`
setting.

  ![Solarized on iTerm](images/boldoption.png)

## Linux

### Patching the Font to be Powerline-compatible

Follow these commands to patch the font.

```bash
cd ~/.dotfiles/new_machine
mkdir -p ~/.fonts/
cp PowerlineSymbols.otf ~/.fonts/
mkdir -p ~/.config/fontconfig/conf.d
fc-cache -vf ~/.fonts/
cp 10-powerline-symbols.conf ~/.config/fontconfig/conf.d
```

### Solarized on Ubuntu Terminal

Create a new profile on the terminal emulator.

  ![Creating a new terminal profile](images/newprofile.png)

Set that profile to be the default profile upon terminal open.

  ![Using solarized as the default terminal](images/newterminal.png)

Run the setup script for solarized.

```bash
cd ~/.dotfiles/new_machine/gnome-terminal-colors-solarized
./set_dark.sh
```

## Enable Copy/Paste in Tmux on OSX
On Macs, `pbcopy` and `pbpaste` don't natively work in tmux. Luckly there's a
[Homebrew](http://brew.sh/) formula to fix that.

```bash
brew install reattach-to-user-namespace
```

The tmux configuration will do the rest for you. Note that this only applies to
machines running OSX.

<commit_msg>Add note about mouse wheel vim scrollling<commit_after># Provisioning a New Machine

New machines require two tasks to be done which are not part of the setup
script: installing (and using) Powerline-compatible fonts and using the
Solarized colorscheme. This configuration uses a zsh theme similar to Agnoster.
It also uses Powerline for vim and tmux. As a result, you'll need to install
patched fonts that support Powerline.

## MacOS

### Installing Powerline-compatible Fonts

There is a `fonts` directory that contains several fonts that work with
Powerline. You can install them by running the installation script in that
subdirectory.

```bash
cd ~/.dotfiles/new_machine/fonts
./install.sh
```

Next you will want to change the fonts in your iTerm profile. Go to the `Text`
tab in your current profile and pick an appropriate font.

### Solarized on iTerm

Import `Solarized Dark.itermcolors` as a colorscheme for iTerm. In the `Colors`
section of your profile, use the `Solarized Dark` preset. To get the directory
colors to work, you'll need to uncheck the `Draw bold text in bright colors`
setting.

  ![Solarized on iTerm](images/boldoption.png)

## Linux

### Patching the Font to be Powerline-compatible

Follow these commands to patch the font.

```bash
cd ~/.dotfiles/new_machine
mkdir -p ~/.fonts/
cp PowerlineSymbols.otf ~/.fonts/
mkdir -p ~/.config/fontconfig/conf.d
fc-cache -vf ~/.fonts/
cp 10-powerline-symbols.conf ~/.config/fontconfig/conf.d
```

### Solarized on Ubuntu Terminal

Create a new profile on the terminal emulator.

  ![Creating a new terminal profile](images/newprofile.png)

Set that profile to be the default profile upon terminal open.

  ![Using solarized as the default terminal](images/newterminal.png)

Run the setup script for solarized.

```bash
cd ~/.dotfiles/new_machine/gnome-terminal-colors-solarized
./set_dark.sh
```

## Enable Copy/Paste in Tmux on OSX
On Macs, `pbcopy` and `pbpaste` don't natively work in tmux. Luckly there's a
[Homebrew](http://brew.sh/) formula to fix that.

```bash
brew install reattach-to-user-namespace
```

The tmux configuration will do the rest for you. Note that this only applies to
machines running OSX.

## Enable Mouse Wheel Scrolling in Vim on OSX
If using iTerm, setting `Scroll wheel sends arrow keys when in alternate screen
mode.` to `Yes` will allow trackpad scrolling while in Vim. The setting can be
found in the advanced preferences.

{'fraction_non_alphanumeric': 0.08278867102396514, 'fraction_numerical': 0.0008714596949891067, 'mean_word_length': 4.258877434135166, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5591947', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1325, 'n_words': 618}