My system configuration via Nix flakes
export def len-unrecorded [] {
    pijul diff -us | lines | length
}

export def repl-prompt [] {
    let unrecorded = len-unrecorded;
     
    if ($unrecorded > 1) {
        $"(ansi red)($unrecorded) unrecorded changes(ansi reset)"
    } else if ($unrecorded == 1) {
        $"(ansi red)1 unrecorded change(ansi reset)"
    } else {
        $"(ansi green)no untracked changes(ansi reset)"
    }
}