<commit_before>#!/bin/bash
set -e

# Navigate to the dotfiles/ dir.
scripts="$(dirname "$BASH_SOURCE")"
dotfiles="$(cd "$scripts/.." && pwd)"

echo "Symlinking files..."

# Symlink every dotfile into ~.
dotfile_folders=(git homebrew spacemacs tmux vim)

for folder in "${dotfile_folders[@]}"; do
    for file in "$dotfiles/$folder"/*; do
        ln -sn "$file" "$HOME/.$(basename "$file")" || true
    done
done

# Symlink every dot-FOLDER into ~/.FOLDER.
copy_folders=(pip ptpython)

for folder in "${copy_folders[@]}"; do
    ln -sn "$dotfiles/$folder" "$HOME/.$folder" || true
done

# Symlink zsh config files into ~.
for file in "$dotfiles/zsh"/*; do
    ln -sn "$file" "$HOME/.$(basename "$file")" || true
done

# Clone Tmux Plugin Manager into ~/.tmux/plugins.
git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm" || true

# Install vim-plug into ~/.vim/autoload.
curl -fLo "$HOME/.vim/autoload/plug.vim" --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

echo "Done symlinking files."
echo
echo "Set zsh as your login shell: chsh -s \"\$(which zsh)\""
echo "You may need to add zsh to /etc/shells."
echo<commit_msg>scripts/setup: Merge the zsh section<commit_after>#!/bin/bash
set -e

# Navigate to the dotfiles/ dir.
scripts="$(dirname "$BASH_SOURCE")"
dotfiles="$(cd "$scripts/.." && pwd)"

echo "Symlinking files..."

# Symlink every dotfile into ~.
dotfile_folders=(git homebrew spacemacs tmux vim zsh)

for folder in "${dotfile_folders[@]}"; do
    for file in "$dotfiles/$folder"/*; do
        ln -sn "$file" "$HOME/.$(basename "$file")" || true
    done
done

# Symlink every dot-FOLDER into ~/.FOLDER.
copy_folders=(pip ptpython)

for folder in "${copy_folders[@]}"; do
    ln -sn "$dotfiles/$folder" "$HOME/.$folder" || true
done

# Clone Tmux Plugin Manager into ~/.tmux/plugins.
git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm" || true

# Install vim-plug into ~/.vim/autoload.
curl -fLo "$HOME/.vim/autoload/plug.vim" --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

echo "Done symlinking files."
echo
echo "Set zsh as your login shell: chsh -s \"\$(which zsh)\""
echo "You may need to add zsh to /etc/shells."
echo
{'fraction_non_alphanumeric': 0.17613132209405502, 'fraction_numerical': 0.0, 'mean_word_length': 3.6784232365145226, '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': '7344024', 'n_tokens_mistral': 846, 'n_tokens_neox': 805, 'n_words': 235}