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

CODE_DIR=~/Code
PROJECTS_DIR="$CODE_DIR/fuadsaud/"
JARVIS_DIR=~/.jarvis
VIM_DIR=~/.vim
GIT_DIR=~/.git

HOMEBREW_ZSH_BIN=/usr/local/bin/zsh

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update

brew install zsh \
  reattach-to-user-namespace \
  ag \
  git \
  hub \
  curl \
  python \
  youtube-dl \
  chruby \
  ruby-install \
  fasd \
  tree \
  trash \
  ctags \
  unrar \
  p7zip \
  jq \
  asciinema \

brew install --HEAD \
  vim \
  tmux \
  ruby-install

brew cask install \
  java \
  spotify \
  virtualbox \
  google-chrome \
  google-drive \
  vlc \
  atom \
  clipmenu \
  dropbox \
  vagrant \
  otto \
  go \
  leiningen \
  transmission \
  handbrake \
  heroku-toolbelt

# fonts

brew tap caskroom/fonts

brew cask install \
  font-fira-mono \
  font-fira-mono-for-powerline \
  font-fira-sans

brew tap brona/iproute2mac
brew install iproute2mac

brew tap nviennot/tmate
brew install tmate

mkdir -p $PROJECTS_DIR

hub clone --recursive fuadsaud/J.A.R.V.I.S "$PROJECTS_DIR/J.A.R.V.I.S"

ln -s ~/Code/fuadsaud/J.A.R.V.I.S $JARVIS_DIR

# vim

ln -s $JARVIS_DIR/.vim $VIM_DIR
ln -s $VIM_DIR/rc.vim ~/.vimrc
ln -s $VIM_DIR/grc.vim ~/.gvimrc

hub clone VundleVim/Vundle.vim $VIM_DIR/bundle/Vundle.vim

vim +PluginInstall +qall

# zsh

ln -s $JARVIS_SYNLINK/zsh ~/.zsh
ln -s ~/.zsh/prezto ~/.zprezto
ln -s ~/.zsh/rc.zsh ~/.zshrc
ln -s ~/.zsh/env.zsh ~/.zshenv
ln -s ~/.zsh/profile.zsh ~/.zprofile
ln -s ~/.zsh/login.zsh ~/.zlogin
ln -s ~/.zsh/logout.zsh ~/.zlogout
ln -s ~/.zsh/preztorc.zsh ~/.zpreztorc

sudo echo $HOMEBREW_ZSH_BIN >> /etc/shells

chsh -s $HOMEBREW_ZSH_BIN

# tmux

ln -s $JARVIS_DIR/tmux.conf ~/.tmux.conf

# rubocop

ln -s $JARVIS_DIR/rubocop.yml ~/.rubocop.yml

# gem

ln -s $JARVIS_DIR/gemrc ~/.gemrc

# git

ln -s $JARVIS_DIR/git $GIT_DIR
ln -s $GIT_DIR/ignore ~/.gitignore
ln -s $GIT_DIR/config ~/.gitconfig

# python

pip install --upgrade pip setuptools
pip install \
  virtualenv \
  virtualenvwrapper \
  powerline-status \
  psutil \
  speedtest-cli \
  doge

# ruby

ruby-install ruby

gem install \
  boom \
  pry \
  rubocop \
  m \
  bundler

./.jarvis/osx
<commit_msg>Fix setup.sh syntax<commit_after>#!/usr/bin/env sh

CODE_DIR=~/Code
PROJECTS_DIR="$CODE_DIR/fuadsaud/"
JARVIS_DIR=~/.jarvis
VIM_DIR=~/.vim
GIT_DIR=~/.git

HOMEBREW_ZSH_BIN=/usr/local/bin/zsh

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update

brew install zsh \
  reattach-to-user-namespace \
  ag \
  git \
  hub \
  curl \
  python \
  youtube-dl \
  chruby \
  ruby-install \
  fasd \
  tree \
  trash \
  ctags \
  unrar \
  p7zip \
  jq \
  asciinema

brew install --HEAD \
  vim \
  tmux \
  ruby-install

brew cask install \
  java \
  spotify \
  virtualbox \
  google-chrome \
  google-drive \
  vlc \
  atom \
  clipmenu \
  dropbox \
  vagrant \
  otto \
  go \
  leiningen \
  transmission \
  handbrake \
  heroku-toolbelt

# fonts

brew tap caskroom/fonts

brew cask install \
  font-fira-mono \
  font-fira-mono-for-powerline \
  font-fira-sans

brew tap brona/iproute2mac
brew install iproute2mac

brew tap nviennot/tmate
brew install tmate

mkdir -p $PROJECTS_DIR

hub clone --recursive fuadsaud/J.A.R.V.I.S "$PROJECTS_DIR/J.A.R.V.I.S"

ln -s ~/Code/fuadsaud/J.A.R.V.I.S $JARVIS_DIR

# vim

ln -s $JARVIS_DIR/.vim $VIM_DIR
ln -s $VIM_DIR/rc.vim ~/.vimrc
ln -s $VIM_DIR/grc.vim ~/.gvimrc

hub clone VundleVim/Vundle.vim $VIM_DIR/bundle/Vundle.vim

vim +PluginInstall +qall

# zsh

ln -s $JARVIS_SYNLINK/zsh ~/.zsh
ln -s ~/.zsh/prezto ~/.zprezto
ln -s ~/.zsh/rc.zsh ~/.zshrc
ln -s ~/.zsh/env.zsh ~/.zshenv
ln -s ~/.zsh/profile.zsh ~/.zprofile
ln -s ~/.zsh/login.zsh ~/.zlogin
ln -s ~/.zsh/logout.zsh ~/.zlogout
ln -s ~/.zsh/preztorc.zsh ~/.zpreztorc

sudo echo $HOMEBREW_ZSH_BIN >> /etc/shells

chsh -s $HOMEBREW_ZSH_BIN

# tmux

ln -s $JARVIS_DIR/tmux.conf ~/.tmux.conf

# rubocop

ln -s $JARVIS_DIR/rubocop.yml ~/.rubocop.yml

# gem

ln -s $JARVIS_DIR/gemrc ~/.gemrc

# git

ln -s $JARVIS_DIR/git $GIT_DIR
ln -s $GIT_DIR/ignore ~/.gitignore
ln -s $GIT_DIR/config ~/.gitconfig

# python

pip install --upgrade pip setuptools
pip install \
  virtualenv \
  virtualenvwrapper \
  powerline-status \
  psutil \
  speedtest-cli \
  doge

# ruby

ruby-install ruby

gem install \
  boom \
  pry \
  rubocop \
  m \
  bundler

./.jarvis/osx

{'fraction_non_alphanumeric': 0.14123524069028157, 'fraction_numerical': 0.0013623978201634877, 'mean_word_length': 2.4576138147566717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2571393', 'n_tokens_mistral': 2102, 'n_tokens_neox': 2029, 'n_words': 416}