<commit_before># <NAME>’s dotfiles

Based on [Mathias’s dotfiles](https://github.com/mathiasbynens/dotfiles)

![Screenshot of my shell prompt](https://i.imgur.com/EkEtphC.png)

---

## Approach to Setting Up New Machine / Syncing

My general approach to syncing environment/files/config across multiple machines and new setups includes:

* [Dotfiles](https://github.com/johndryan/dotfiles) for environment setup, brew/cask install of apps
* [iCloud](https://www.icloud.com) syncing of Mail/Calendars/etc.
* Dropbox syncing of files/1Password/Transmit/etc.
	* [Mackup](https://github.com/lra/mackup) syncs a range of apps including Coda, Tower, etc. 
* Some apps sync via their own services (Transmit & Coda, Things) 

---

## Installation

### Using Git and the bootstrap script

I like to keep it in `~/Documents/Projects/dotfiles`, with `~/.dotfiles` as a symlink.

```bash
ln -s ~/Documents/Projects/dotfiles ~/.dotfiles
```

The bootstrapper script will pull in the latest version and copy the files to your home folder.

```bash
git clone https://github.com/johndryan/dotfiles.git && cd dotfiles && source bootstrap.sh
```

To update, `cd` into your local `dotfiles` repository and then:

```bash
source bootstrap.sh
```



### Specify the `$PATH`

If `~/.path` exists, it will be sourced along with the other files, before any feature testing (such as [detecting which version of `ls` is being used](https://github.com/mathiasbynens/dotfiles/blob/aff769fd75225d8f2e481185a71d5e05b76002dc/.aliases#L21-26)) takes place.

Here’s an example `~/.path` file that adds `/usr/local/bin` to the `$PATH`:

```bash<commit_msg>Updated default dotfiles directory<commit_after># <NAME>’s dotfiles

Based on [Mathias’s dotfiles](https://github.com/mathiasbynens/dotfiles)

![Screenshot of my shell prompt](https://i.imgur.com/EkEtphC.png)

---

## Approach to Setting Up New Machine / Syncing

My general approach to syncing environment/files/config across multiple machines and new setups includes:

* [Dotfiles](https://github.com/johndryan/dotfiles) for environment setup, brew/cask install of apps
* [iCloud](https://www.icloud.com) syncing of Mail/Calendars/etc.
* Dropbox syncing of files/1Password/Transmit/etc.
	* [Mackup](https://github.com/lra/mackup) syncs a range of apps including Coda, Tower, etc. 
* Some apps sync via their own services (Transmit & Coda, Things) 

---

## Installation

### Using Git and the bootstrap script

I like to keep it in `~/Projects/dotfiles`, with `~/.dotfiles` as a symlink.

```bash
ln -s ~/Projects/dotfiles ~/.dotfiles
```

The bootstrapper script will pull in the latest version and copy the files to your home folder.

```bash
git clone https://github.com/johndryan/dotfiles.git && cd dotfiles && source bootstrap.sh
```

To update, `cd` into your local `dotfiles` repository and then:

```bash
source bootstrap.sh
```



### Specify the `$PATH`

If `~/.path` exists, it will be sourced along with the other files, before any feature testing (such as [detecting which version of `ls` is being used](https://github.com/mathiasbynens/dotfiles/blob/aff769fd75225d8f2e481185a71d5e05b76002dc/.aliases#L21-26)) takes place.

Here’s an example `~/.path` file that adds `/usr/local/bin` to the `$PATH`:

```bash
{'fraction_non_alphanumeric': 0.1275808936825886, 'fraction_numerical': 0.019106317411402157, 'mean_word_length': 4.4646464646464645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, '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': '2385290', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1058, 'n_words': 348}