<commit_before>dotfiles=( # list of all dotfiles to do simple symlink for
    .oh-my-zsh \
    .shell \
    .bashrc \
    .editorconfig \
    .gitconfig \
    .gitignore_global \
    .tmux.conf \
    .vimrc \
    .zshrc \
);
old_dotfiles=();
already_linked=();
newly_linked=();
timestamp=$(date +%s) # for old_dotfiles folder name

for d in "${dotfiles[@]}"; do
    if [[ $(readlink ~/$d) = $(pwd)/$d ]]; then
        # ignore items already set up as expected
        already_linked+=$d;
    else
        if [ -f ~/$d ] || [ -d ~/$d ]; then
            # backup things that will be overwritten
            mkdir -p ~/.old_dotfiles_$timestamp/;
            mv -r ~/$d ~/.old_dotfiles_$timestamp/;
            old_dotfiles+=$d;
        fi
        ln -s "$(pwd)/$d" ~/$d;
        newly_linked+=$d;
    fi;
done;<commit_msg>updating mv command<commit_after>dotfiles=( # list of all dotfiles to do simple symlink for
    .oh-my-zsh \
    .shell \
    .bashrc \
    .editorconfig \
    .gitconfig \
    .gitignore_global \
    .tmux.conf \
    .vimrc \
    .zshrc \
);
old_dotfiles=();
already_linked=();
newly_linked=();
timestamp=$(date +%s) # for old_dotfiles folder name

for d in "${dotfiles[@]}"; do
    if [[ $(readlink ~/$d) = $(pwd)/$d ]]; then
        # ignore items already set up as expected
        already_linked+=$d;
    else
        if [ -f ~/$d ] || [ -d ~/$d ]; then
            # backup things that will be overwritten
            mkdir -p ~/.old_dotfiles_$timestamp/;
            mv  ~/$d ~/.old_dotfiles_$timestamp/;
            old_dotfiles+=$d;
        fi
        ln -s "$(pwd)/$d" ~/$d;
        newly_linked+=$d;
    fi;
done;
{'fraction_non_alphanumeric': 0.1624087591240876, 'fraction_numerical': 0.0, 'mean_word_length': 1.9270462633451957, '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': '6671145', 'n_tokens_mistral': 592, 'n_tokens_neox': 580, 'n_words': 150}