<commit_before>#!/usr/bin/env bash

function create_folder {
    local dir="$1"
    echo "Ensuring the directory $dir exists"
    mkdir -p "$dir"
}

function link {
    local src="$1"
    local dst="$2"
    echo "Creating symlink $dst to $src"
    ln -sf "$src" "$dst"
}

if [[ "$DOTFILES" = "" ]]; then
    echo "ERROR: The DOTFILES environment variable is not set!"
    exit 1
fi

echo -e "\\nEnsuring XDG folders exist"
echo "=========================="

create_folder "$HOME/.config/cmus"
create_folder "$HOME/.config/conky"
create_folder "$HOME/.config/dunst"
create_folder "$HOME/.config/i3"
create_folder "$HOME/.config/i3status"
create_folder "$HOME/.config/mpd"
create_folder "$HOME/.config/ncmpcpp"
create_folder "$HOME/.config/ranger"<commit_msg>Don't expect DOTFILES in link script<commit_after>#!/usr/bin/env bash

function create_folder {
    local dir="$1"
    echo "Ensuring the directory $dir exists"
    mkdir -p "$dir"
}

function link {
    local src="$1"
    local dst="$2"
    echo "Creating symlink $dst to $src"
    ln -sf "$src" "$dst"
}

[ "$DOTFILES" = "" ] && DOTFILES="$HOME/.dotfiles"

echo -e "\\nEnsuring XDG folders exist"
echo "=========================="

create_folder "$HOME/.config/cmus"
create_folder "$HOME/.config/conky"
create_folder "$HOME/.config/dunst"
create_folder "$HOME/.config/i3"
create_folder "$HOME/.config/i3status"
create_folder "$HOME/.config/mpd"
create_folder "$HOME/.config/ncmpcpp"
create_folder "$HOME/.config/ranger"
{'fraction_non_alphanumeric': 0.1880920162381597, 'fraction_numerical': 0.007442489851150203, 'mean_word_length': 4.135416666666667, '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': '6279389', 'n_tokens_mistral': 525, 'n_tokens_neox': 500, 'n_words': 129}