vim ~/.zshrc
autoload -Uz colors && colors

parse_git_branch() {
  git symbolic-ref --short HEAD 2>/dev/null | sed 's/.*/[&]/'
}

setopt PROMPT_SUBST
PROMPT='%n@%m: %F{blue}%~ %F{red}$(parse_git_branch)%f $ '