<commit_before>set -e

if [ ! -n "$ZSH" ]; then
  ZSH=~/.oh-my-zsh
fi

if [ -d "$ZSH" ]; then
  exit
fi

hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/IsmailM/oh-my-zsh.git $ZSH || {
  exit
}

if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
  mv ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
fi

cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
sed -i -e "/^export ZSH=/ c\\
export ZSH=$ZSH
" ~/.zshrc

sed -i -e "/export PATH=/ c\\
export PATH=\"$PATH\"
" ~/.zshrc

env zsh
. ~/.zshrc<commit_msg>make install absolutely quiet<commit_after>set -e

if [ ! -n "$ZSH" ]; then
  ZSH=~/.oh-my-zsh
fi

if [ -d "$ZSH" ]; then
  exit
fi

hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/IsmailM/oh-my-zsh.git $ZSH  >/dev/null || {
  exit
}

if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
  mv ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
fi

cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
sed -i -e "/^export ZSH=/ c\\
export ZSH=$ZSH
" ~/.zshrc

sed -i -e "/export PATH=/ c\\
export PATH=\"$PATH\"
" ~/.zshrc

echo 'Oh-My-ZSH has been installed'

env zsh
. ~/.zshrc
{'fraction_non_alphanumeric': 0.23105706267539758, 'fraction_numerical': 0.005612722170252572, 'mean_word_length': 2.3860759493670884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2708929', 'n_tokens_mistral': 518, 'n_tokens_neox': 504, 'n_words': 126}