<commit_before>source_safe() {
	[[ -s "$1" ]] && source $1
}

has_bin() {
	which $1 > /dev/null
}

add_path() {
	export PATH=$1:$PATH
}

bindkey "^P" up-line-or-search
bindkey "^[[3~" delete-char<commit_msg>feat(zsh): add tf command to quickly create tmux session<commit_after>source_safe() {
	[[ -s "$1" ]] && source $1
}

has_bin() {
	which $1 > /dev/null
}


add_path() {
	export PATH=$1:$PATH
}

bindkey "^P" up-line-or-search
bindkey "^[[3~" delete-char

tf() {
	local next=$(find ~/src -maxdepth 3 -mindepth 3 -type d | grep -v '.git' | fzf)
	local session=$(basename $next)
	if [ -z "$TMUX" ]
	then
		tmux a -t $session || tmux new -s $session -c $next
	else
		tmux switch -t $session || (tmux new -s $session -d -c $next && tmux switch -t $session)
	fi
}
{'fraction_non_alphanumeric': 0.1968503937007874, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 3.4104046242774566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1723732', 'n_tokens_mistral': 331, 'n_tokens_neox': 317, 'n_words': 91}