<commit_before>#!/bin/bash

dotfilesdir=$HOME/dotfiles
olddotfilesdir=$HOME/dotfiles_old
files="bash_profile vimrc tmux.conf slate.js git_template"

echo "Creating old dotfiles directory $olddotfilesdir"
mkdir -p $olddotfilesdir

for file in $files; do
    echo "Moving $HOME/.$file to $olddotfilesdir/.$file"
    mv $HOME/.$file $olddotfilesdir/.$file
    echo "Creating symlink to $dotfilesdir/.$file in $HOME/.$file"
    ln -s $dotfilesdir/.$file $HOME/.$file
done

echo "Sourcing $HOME/.bash_profile"
source $HOME/.bash_profile

echo "Adding $HOME/.git_template to global git config as init.templatedir"
git config --global init.templatedir '$HOME/.git_template'<commit_msg>doesnt source bash_profile<commit_after>#!/bin/bash

dotfilesdir=$HOME/dotfiles
olddotfilesdir=$HOME/dotfiles_old
files="bash_profile vimrc tmux.conf slate.js git_template"

echo "Creating old dotfiles directory $olddotfilesdir"
mkdir -p $olddotfilesdir

for file in $files; do
    echo "Moving $HOME/.$file to $olddotfilesdir/.$file"
    mv $HOME/.$file $olddotfilesdir/.$file
    echo "Creating symlink to $dotfilesdir/.$file in $HOME/.$file"
    ln -s $dotfilesdir/.$file $HOME/.$file
done

echo "Adding $HOME/.git_template to global git config as init.templatedir"
git config --global init.templatedir '$HOME/.git_template'
{'fraction_non_alphanumeric': 0.12260536398467432, 'fraction_numerical': 0.0, 'mean_word_length': 4.753303964757709, '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': '7673604', 'n_tokens_mistral': 465, 'n_tokens_neox': 440, 'n_words': 118}