<commit_before>#!/bin/bash
user=${SUDO_USER:-$(whoami)}
USER_HOME=$(eval echo ~${user})

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
target=$USER_HOME

apt-get update && apt-get dist-upgrade -y
apt-get install zsh
chsh -s /bin/zsh $user

cp -p $DIR/.zshrc $target/.zshrc
cp -rp $DIR/.rcs $target/.rcs 
<commit_msg>made the shell changing more robust<commit_after>#!/bin/bash
user=${SUDO_USER:-$(whoami)}
USER_HOME=$(eval echo ~${user})

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
target=$USER_HOME

apt-get update && apt-get dist-upgrade -y
apt-get install zsh
chsh -s $(grep /zsh$ /etc/shells | tail -1) $user

cp -p $DIR/.zshrc $target/.zshrc
cp -rp $DIR/.rcs $target/.rcs 

{'fraction_non_alphanumeric': 0.21255349500713266, 'fraction_numerical': 0.0042796005706134095, 'mean_word_length': 4.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2294701', 'n_tokens_mistral': 294, 'n_tokens_neox': 278, 'n_words': 71}