<commit_before># dotfiles

This is my dotfiles for my system customizations and to setup my development environment.

![Screenshot](https://raw.githubusercontent.com/guillaumebriday/dotfiles/master/screenshot.png)

## What's included ?

+ Homebrew
  + Installs Homebrew AND brew install's all of my favourite packages
  + Uses homebrew-cask to install all my applications
+ RVM
+ macOS
  + Installs applications via the Mac App Store
+ Git
  + Git config
  + Global gitignore
+ Vim config
+ SSH config
+ Oh-My-Zsh
  + Robbyrussell theme
  + Aliases
+ Arthur iTerm2 colors theme
+ BetterTouchTool configuration
+ VS Code configuration

## Installation

### Brew

Packages and applications are installed with [https://brew.sh/](https://brew.sh/).

```bash
$ chmod +x brew/brew.sh # Make sure you can execute the file
$ brew/brew.sh
```

### RVM

Ruby is manage with [https://rvm.io](https://rvm.io).

```bash
$ chmod +x ruby/rvm.sh # Make sure you can execute the file
$ ruby/rvm.sh
```

### masOS

Before running the ```mas``` command, be sure to install ```brew``` with the last command.

```bash
$ chmod +x ./macOS/mas.sh # Make sure you can execute the file
$ ./macOS/mas.sh
```

#### Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible macOS defaults.

```bash
$ chmod +x ./macOS/.macos # Make sure you can execute the file
$ ./macOS/.macos
```

### Git

Nothing to install here, just move the content of the Git folder into your home :

```bash
$ cp -r git/. ~/.
```

### Vim

Same here, just move the ```vimrc``` file into your home folder.

```bash
$ cp vim/.vimrc ~/
```

### SSH

Configuration file for ssh keys.

```bash
$ cp ssh/config ~/.ssh/config
```

### ZSH

Here too, just move the zsh config file to your home folder.

```bash
$ cp zsh/.zshrc ~/.zshrc
$ touch ~/.hushlogin # If you want to hide the last login banner on logging
```

### iTerm2

```bash
$ chmod +x iTerm2/iterm.sh # Make sure you can execute the file
$ iTerm2/iterm.sh
```

Once the theme is downloaded, you can modify your iTerm2 settings in the app.

### BetterTouchTool

It's just an export of my BTT configuration. To install, just import it into BTT.

### VS Code

Install extensions :
```bash
$ chmod +x ./vscode/package.sh # Make sure you can execute the file
$ ./vscode/package.sh
```

To add my configuration :
```bash
$ cp -r vscode/. ~/Library/Application\ Support/Code/User/
```<commit_msg>Adding command to install oh my zsh<commit_after># dotfiles

This is my dotfiles for my system customizations and to setup my development environment.

![Screenshot](https://raw.githubusercontent.com/guillaumebriday/dotfiles/master/screenshot.png)

## What's included ?

+ Homebrew
  + Installs Homebrew AND brew install's all of my favourite packages
  + Uses homebrew-cask to install all my applications
+ RVM
+ macOS
  + Installs applications via the Mac App Store
+ Git
  + Git config
  + Global gitignore
+ Vim config
+ SSH config
+ Oh-My-Zsh
  + Robbyrussell theme
  + Aliases
+ Arthur iTerm2 colors theme
+ BetterTouchTool configuration
+ VS Code configuration

## Installation

### Brew

Packages and applications are installed with [https://brew.sh/](https://brew.sh/).

```bash
$ chmod +x brew/brew.sh # Make sure you can execute the file
$ brew/brew.sh
```

### RVM

Ruby is manage with [https://rvm.io](https://rvm.io).

```bash
$ chmod +x ruby/rvm.sh # Make sure you can execute the file
$ ruby/rvm.sh
```

### masOS

Before running the ```mas``` command, be sure to install ```brew``` with the last command.

```bash
$ chmod +x ./macOS/mas.sh # Make sure you can execute the file
$ ./macOS/mas.sh
```

#### Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible macOS defaults.

```bash
$ chmod +x ./macOS/.macos # Make sure you can execute the file
$ ./macOS/.macos
```

### Git

Nothing to install here, just move the content of the Git folder into your home :

```bash
$ cp -r git/. ~/.
```

### Vim

Same here, just move the ```vimrc``` file into your home folder.

```bash
$ cp vim/.vimrc ~/
```

### SSH

Configuration file for ssh keys.

```bash
$ cp ssh/config ~/.ssh/config
```

### ZSH

Here too, just move the zsh config file to your home folder.

```bash
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # install oh-my-zsh
$ cp zsh/.zshrc ~/.zshrc
$ touch ~/.hushlogin # If you want to hide the last login banner on logging
```

### iTerm2

```bash
$ chmod +x iTerm2/iterm.sh # Make sure you can execute the file
$ iTerm2/iterm.sh
```

Once the theme is downloaded, you can modify your iTerm2 settings in the app.

### BetterTouchTool

It's just an export of my BTT configuration. To install, just import it into BTT.

### VS Code

Install extensions :
```bash
$ chmod +x ./vscode/package.sh # Make sure you can execute the file
$ ./vscode/package.sh
```

To add my configuration :
```bash
$ cp -r vscode/. ~/Library/Application\ Support/Code/User/
```
{'fraction_non_alphanumeric': 0.1299899699097292, 'fraction_numerical': 0.0020060180541624875, 'mean_word_length': 3.565934065934066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, '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': '1804500', 'n_tokens_mistral': 1736, 'n_tokens_neox': 1622, 'n_words': 629}