<commit_before>#!/bin/sh

# Grab oh-my-zsh.
if [ ! -d ~/.oh-my-zsh ]; then
  sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi

# Install configs.
mkdir -p ~/.config
for d in $(tree --noreport -id); do
  if [[ ! $d = "." ]]; then
    stow -t ~/ $d
  fi
done

# Grab vim plug and fetch plugins.
if [ ! -e ~/.vim/autoload/plug.vim ]; then
  curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  vim +PlugInstall +qall
fi<commit_msg>install-files.sh: add symlinks for neovim<commit_after>#!/bin/sh

# Grab oh-my-zsh.
if [ ! -d ~/.oh-my-zsh ]; then
  sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi

# Install configs.
mkdir -p ~/.config
for d in $(tree --noreport -id); do
  if [[ ! $d = "." ]]; then
    stow -t ~/ $d
  fi
done

# Install vim-plug for vim.
if [ ! -e ~/.vim/autoload/plug.vim ]; then
  curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi

# Symlink files for neovim.
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim

# Install vim plugins.
vim +PlugInstall +qall
{'fraction_non_alphanumeric': 0.18994413407821228, 'fraction_numerical': 0.0, 'mean_word_length': 2.72106824925816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6226043', 'n_tokens_mistral': 548, 'n_tokens_neox': 515, 'n_words': 120}