<commit_before>#!/bin/sh
#
# Set up zsh and oh-my-zsh

printf "\n› Setting up zsh\n"

sudo sh -c "sudo printf \"/usr/local/bin/zsh\n\" >> /etc/shells"
chsh -s /usr/local/bin/zsh

# Install oh-my-zsh
curl -L http://install.ohmyz.sh | sh > /tmp/oh-my-zsh-install.log

# Copy kristoffer.zsh-theme to $HOME/.oh-my-zsh/themes/
cp "$(pwd)/zsh/kristoffer.zsh-theme" "$HOME/.oh-my-zsh/themes/kristoffer.zsh-theme"

# Copy all zsh files to $HOME/.oh-my-zsh/custom
# typeset -U config_files
config_files=($(pwd)/**/*.zsh)

for file in ${config_files}
do
  filename=$(basename "$file")
  cp $file $HOME/.oh-my-zsh/custom/$filename
done<commit_msg>Try to get parent dir to install all zsh files<commit_after>#!/bin/sh
#
# Set up zsh and oh-my-zsh

printf "\n› Setting up zsh\n"

sudo sh -c "sudo printf \"/usr/local/bin/zsh\n\" >> /etc/shells"
chsh -s /usr/local/bin/zsh

# Install oh-my-zsh
curl -L http://install.ohmyz.sh | sh > /tmp/oh-my-zsh-install.log

# Copy kristoffer.zsh-theme to $HOME/.oh-my-zsh/themes/
cp "$(pwd)/zsh/kristoffer.zsh-theme" "$HOME/.oh-my-zsh/themes/kristoffer.zsh-theme"

# Copy all zsh files to $HOME/.oh-my-zsh/custom
# typeset -U config_files
config_files=($(dirname pwd)/**/*.zsh)

for file in ${config_files}
do
  filename=$(basename "$file")
  cp $file $HOME/.oh-my-zsh/custom/$filename
done
{'fraction_non_alphanumeric': 0.18888042650418888, 'fraction_numerical': 0.0, 'mean_word_length': 3.4242424242424243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '7007948', 'n_tokens_mistral': 578, 'n_tokens_neox': 559, 'n_words': 121}