<commit_before>main() {

set -o errexit
set -o nounset

abort() {
    echo "$1"
    exit 1
}

repo="azdavis/dotfiles"
dst="$HOME/.config"
zsh="$(which zsh)"

echo "installing '$repo' to '$dst'"
[ -L "$dst" ] && rm "$dst"
[ -e "$dst" ] && rm -ri "$dst" < /dev/tty
[ -e "$dst" ] && abort "cancelling install"
git clone -q "https://github.com/$repo" "$dst"
chmod 700 "$dst"

echo "doing dotfile actions"<commit_msg>add some need_cmd<commit_after>main() {

set -o errexit
set -o nounset

abort() {
    echo "$1"
    exit 1
}

need_cmd() {
    which "$1" > /dev/null || abort "$1 not in PATH"
}

need_cmd zsh
need_cmd git

repo="azdavis/dotfiles"
dst="$HOME/.config"
zsh="$(which zsh)"

echo "installing '$repo' to '$dst'"
[ -L "$dst" ] && rm "$dst"
[ -e "$dst" ] && rm -ri "$dst" < /dev/tty
[ -e "$dst" ] && abort "cancelling install"
git clone -q "https://github.com/$repo" "$dst"
chmod 700 "$dst"

echo "doing dotfile actions"
{'fraction_non_alphanumeric': 0.21536796536796537, 'fraction_numerical': 0.012987012987012988, 'mean_word_length': 3.4902912621359223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6763620', 'n_tokens_mistral': 384, 'n_tokens_neox': 372, 'n_words': 110}