This works in Bash (parse_git_branch is a defined function)
export PS1="\$(parse_git_branch)"
but I cannot figure out the equivalent in zsh.
Note: If I do
PROMPT="$(parse_git_branch)"
it seems to work, but in fact it's running the command when I set the prompt, which is not the point.