<commit_before>setopt prompt_subst

# prompt commands
local directory="%~"
local prompt_sign="%(!.#.$)"
local ret_status="%(?.%F{green}.%F{red})"

function user_info() {
	if [[ -n ${HIDE_USER} ]]; then
		local user="********"
		local server="********"
	else
		local user="%n"
		local server="%m"
	fi
	echo "${USER_INFO_PREFIX}${user}@${server}${USER_INFO_SUFFIX} "
}

# custom venv prompt
export VIRTUAL_ENV_DISABLE_PROMPT=1
function venv_info() {
	if [[ -n ${VIRTUAL_ENV} ]]; then
		echo "${VENV_PROMPT_PREFIX}$(basename ${VIRTUAL_ENV})${VENV_PROMPT_SUFFIX} "
	fi
}

# prompt variables
if [[ -a $HOME/.light ]]; then
	USER_INFO_PREFIX=%F{black}
	eval $(dircolors ~/.config/zsh/dircolors/ansi-light.dircolors)
else
	USER_INFO_PREFIX=%F{white}
	eval $(dircolors ~/.config/zsh/dircolors/ansi-dark.dircolors)
fi
USER_INFO_SUFFIX="%f"

VENV_PROMPT_PREFIX="%F{blue}%Bvenv:(%b%F{red}"
VENV_PROMPT_SUFFIX="%F{blue})%B$%b%f"

ZSH_THEME_GIT_PROMPT_PREFIX="%F{blue}%Bgit:(%b%F{red}"
ZSH_THEME_GIT_PROMPT_CLEAN="%F{blue}%B)"
ZSH_THEME_GIT_PROMPT_DIRTY="%F{blue}%B) %F{yellow}✗"
ZSH_THEME_GIT_PROMPT_SUFFIX="%f%b"

PROMPT='$(venv_info)%F{cyan}${directory}%f $(git_prompt_info)
$(user_info)${ret_status}${prompt_sign}%f '

autoload colors && colors<commit_msg>Add bat theme colours<commit_after>setopt prompt_subst

# prompt commands
local directory="%~"
local prompt_sign="%(!.#.$)"
local ret_status="%(?.%F{green}.%F{red})"

function user_info() {
	if [[ -n ${HIDE_USER} ]]; then
		local user="********"
		local server="********"
	else
		local user="%n"
		local server="%m"
	fi
	echo "${USER_INFO_PREFIX}${user}@${server}${USER_INFO_SUFFIX} "
}

# custom venv prompt
export VIRTUAL_ENV_DISABLE_PROMPT=1
function venv_info() {
	if [[ -n ${VIRTUAL_ENV} ]]; then
		echo "${VENV_PROMPT_PREFIX}$(basename ${VIRTUAL_ENV})${VENV_PROMPT_SUFFIX} "
	fi
}

# prompt variables
if [[ -a $HOME/.light ]]; then
	export BAT_THEME="ansi-light"
	USER_INFO_PREFIX=%F{black}
	eval $(dircolors ~/.config/zsh/dircolors/ansi-light.dircolors)
else
	export BAT_THEME="ansi-dark"
	USER_INFO_PREFIX=%F{white}
	eval $(dircolors ~/.config/zsh/dircolors/ansi-dark.dircolors)
fi
USER_INFO_SUFFIX="%f"

VENV_PROMPT_PREFIX="%F{blue}%Bvenv:(%b%F{red}"
VENV_PROMPT_SUFFIX="%F{blue})%B$%b%f"

ZSH_THEME_GIT_PROMPT_PREFIX="%F{blue}%Bgit:(%b%F{red}"
ZSH_THEME_GIT_PROMPT_CLEAN="%F{blue}%B)"
ZSH_THEME_GIT_PROMPT_DIRTY="%F{blue}%B) %F{yellow}✗"
ZSH_THEME_GIT_PROMPT_SUFFIX="%f%b"

PROMPT='$(venv_info)%F{cyan}${directory}%f $(git_prompt_info)
$(user_info)${ret_status}${prompt_sign}%f '

autoload colors && colors
{'fraction_non_alphanumeric': 0.20288724151385096, 'fraction_numerical': 0.0007803355442840422, 'mean_word_length': 7.780821917808219, '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': '7351461', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1147, 'n_words': 152}