# --------------------------------------- #
# | The prompt itself
# --------------------------------------- #

# The prompt
PROMPT='
$(background_jobs_info)$(user_host)${current_dir}$(git_prompt_info)
${arrow} '

# Right prompt, show time and background jobs info
RPROMPT='%T'

# Prompt values
local current_dir="%3~%{$reset_color%} "
local arrow="%(?.%{$fg[blue]%}.%{$fg[red]%})%B${PROMPT_SYMBOL}%b"

# --------------------------------------- #
# | The prompt itself
# --------------------------------------- #

# The prompt
PROMPT='
$(background_jobs_info)$(user_host)${current_dir}$(git_prompt_info)
${arrow} '

# Right prompt, show time and background jobs info
RPROMPT='%T'

# Prompt values
local current_dir="%3~%{$reset_color%} "
local arrow="%(?.%{$fg[blue]%}.%{$fg[red]%})%B${PROMPT_SYMBOL}%b"

# Show working directory in the title
function precmd () {
    tab_label=${PWD/${HOME}/\~}
    echo -ne "\e]2;${tab_label}\a"
}

Make the prompt title as the working directory
Make the prompt title as the working directory
