<commit_before># dotfiles
Dotfiles for tmux, vim and bash including powerline for all.

## Setup
1. Clone the repo.
2. Load the iTerm2 settings

  ```
  Preferences > General > "Load preferences from a customer folder or URL"
  Open the plist in the repo.
  ```
3. Install Homebrew. (http://brew.sh)

  ```
  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  ```
4. Install Tmux.

  ```
  brew install tmux
  ```
5. Install Tmux Plugin Manager ((TPM)[https://github.com/tmux-plugins/tpm])

  ```
  git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  ```
6. Run the following commands to symlink the files in the repo to the apporpriate places.

  ```
  mkdir ~/.tmux
  mkdir ~/.config
  mkdir ~/.config/powerline-shell
  export repo_dir=/path/to/this/repo
  ln -s $repo_dir/bash_profile           ~/.bash_profile
  ln -s $repo_dir/bashrc                 ~/.bashrc
  ln -s $repo_dir/git_ignore             ~/.gitignore
  ln -s $repo_dir/irbrc                  ~/.irbrc
  ln -s $repo_dir/powerline_shell_config ~/.config/powerline-shell/config.json
  ln -s $repo_dir/rspecrc                ~/.rspec
  ln -s $repo_dir/aprc                   ~/.aprc
  ln -s $repo_dir/tmux_conf              ~/.tmux.conf
  ln -s $repo_dir/tmux_powerline         ~/.tmux-powerline
  ln -s $repo_dir/tmux_powerlinerc       ~/.tmux-powerlinerc
  ln -s $repo_dir/pop_tmux               ~/.tmux/poppays
  ln -s $repo_dir/vimrc                  ~/.vimrc
  ```
7. Configure git globals

  ```
  git config --global core.editor "vim"
  git config --global push.default simple
  git config --global user.name "<NAME>"
  git config --global user.email <EMAIL>
  git config --global core.excludesfile '~/.gitignore'
  ```
8. Clone and install the powerline fonts.

  ```
  git clone https://github.com/powerline/fonts
  cd fonts
  ./install.sh
  ```
9. Set up powerline-shell.
  - https://github.com/milkbikis/powerline-shell#setup **#TODO:** Add a fork of the powerline-shell repo to this repo to remove the dependency.
10. Clone tmux-powerline repo.

  ```
  git clone https://github.com/HallDJack/tmux-powerline
  ```
11. Install Karabiner-Elements.

  Download:
  ```
  https://pqrs.org/osx/karabiner/index.html
  ```
  Configure:
  ```
  ln -s $repo_dir/karabiner ~/.config
  launchctl kickstart -k gui/`id -u`/org.pqrs.karabiner.karabiner_console_user_server
  ```
12. Clone Vundle.

  ```
  git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim
  ```
13. Install Vundle.

  ```
  #Open Vim
  #Source vimrc
  :source ~/.vimrc
  #Run
  :PluginInstall
  ```
14. Install all the Vundle plugins.

  ```vim
  # Open Vim
  #Source vimrc
  :source ~/.vimrc
  #Run
  :PluginInstall
  ```
15. Vim Powerline should be set up once a Vundle is performed.
  - Source repo: https://github.com/vim-airline/vim-airline
16. Install Ctags
  ```
  brew install ctags
  ```
17. Install Gnupg

  ```
  brew install gnupg
  ```
18. Install RVM
  - https://rvm.io/rvm/install#installing-rvm
19. Install Global Gems

  ```
  rvm @global do gem install awesome_print
  rvm @global do gem install pry
  rvm @global do gem install pry-byebug
  ```
20. Install alt-ruby.vim. (From Dropbox)
21. Extra Documentation incase something has gone wrong.
  - https://github.com/altercation/solarized
  - https://powerline.readthedocs.org/en/master/#powerline
  - https://github.com/powerline/powerline (Extra Powerline stuff)
  - https://gist.github.com/MohamedAlaa/2961058 (Tmux shortcuts)<commit_msg>Add instructions for NPM and NPX.<commit_after># dotfiles
Dotfiles for tmux, vim and bash including powerline for all.

## Setup
1. Clone the repo.
2. Load the iTerm2 settings

  ```
  Preferences > General > "Load preferences from a customer folder or URL"
  Open the plist in the repo.
  ```
3. Install Homebrew. (http://brew.sh)

  ```
  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  ```
4. Install Tmux.

  ```
  brew install tmux
  ```
5. Install Tmux Plugin Manager ((TPM)[https://github.com/tmux-plugins/tpm])

  ```
  git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  ```
6. Run the following commands to symlink the files in the repo to the apporpriate places.

  ```
  mkdir ~/.tmux
  mkdir ~/.config
  mkdir ~/.config/powerline-shell
  export repo_dir=/path/to/this/repo
  ln -s $repo_dir/bash_profile           ~/.bash_profile
  ln -s $repo_dir/bashrc                 ~/.bashrc
  ln -s $repo_dir/git_ignore             ~/.gitignore
  ln -s $repo_dir/irbrc                  ~/.irbrc
  ln -s $repo_dir/powerline_shell_config ~/.config/powerline-shell/config.json
  ln -s $repo_dir/rspecrc                ~/.rspec
  ln -s $repo_dir/aprc                   ~/.aprc
  ln -s $repo_dir/tmux_conf              ~/.tmux.conf
  ln -s $repo_dir/tmux_powerline         ~/.tmux-powerline
  ln -s $repo_dir/tmux_powerlinerc       ~/.tmux-powerlinerc
  ln -s $repo_dir/pop_tmux               ~/.tmux/poppays
  ln -s $repo_dir/vimrc                  ~/.vimrc
  ```
7. Configure git globals

  ```
  git config --global core.editor "vim"
  git config --global push.default simple
  git config --global user.name "<NAME>"
  git config --global user.email <EMAIL>
  git config --global core.excludesfile '~/.gitignore'
  ```
8. Clone and install the powerline fonts.

  ```
  git clone https://github.com/powerline/fonts
  cd fonts
  ./install.sh
  ```
9. Set up powerline-shell.
  - https://github.com/milkbikis/powerline-shell#setup **#TODO:** Add a fork of the powerline-shell repo to this repo to remove the dependency.
10. Clone tmux-powerline repo.

  ```
  git clone https://github.com/HallDJack/tmux-powerline
  ```
11. Install Karabiner-Elements.

  Download:
  ```
  https://pqrs.org/osx/karabiner/index.html
  ```
  Configure:
  ```
  ln -s $repo_dir/karabiner ~/.config
  launchctl kickstart -k gui/`id -u`/org.pqrs.karabiner.karabiner_console_user_server
  ```
12. Clone Vundle.

  ```
  git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim
  ```
13. Install Vundle.

  ```
  #Open Vim
  #Source vimrc
  :source ~/.vimrc
  #Run
  :PluginInstall
  ```
14. Install all the Vundle plugins.

  ```vim
  # Open Vim
  #Source vimrc
  :source ~/.vimrc
  #Run
  :PluginInstall
  ```
15. Vim Powerline should be set up once a Vundle is performed.
  - Source repo: https://github.com/vim-airline/vim-airline
16. Install Ctags
  ```
  brew install ctags
  ```
17. Install Gnupg

  ```
  brew install gnupg
  ```
18. Install RVM
  - https://rvm.io/rvm/install#installing-rvm
19. Install Global Gems

  ```
  rvm @global do gem install awesome_print
  rvm @global do gem install pry
  rvm @global do gem install pry-byebug
  ```
20. Install NPM & NPX [link](https://medium.com/@kkostov/how-to-install-node-and-npm-on-macos-using-homebrew-708e2c3877bd)

  ```
  brew install node
  npm install -g npx
  ```
21. Install alt-ruby.vim. (From Dropbox)
22. Extra Documentation incase something has gone wrong.
  - https://github.com/altercation/solarized
  - https://powerline.readthedocs.org/en/master/#powerline
  - https://github.com/powerline/powerline (Extra Powerline stuff)
  - https://gist.github.com/MohamedAlaa/2961058 (Tmux shortcuts)
{'fraction_non_alphanumeric': 0.13509127789046654, 'fraction_numerical': 0.012440838404327248, 'mean_word_length': 2.6686507936507935, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 31, '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': '3034067', 'n_tokens_mistral': 2784, 'n_tokens_neox': 2597, 'n_words': 678}