Get Function Into PS1 (Zsh)?

Posted by Yar on Super User See other posts from Super User or by Yar
Published on 2010-05-17T14:25:46Z Indexed on 2010/05/17 14:31 UTC
Read the original article Hit count: 128

Filed under:
|

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: parse_git_branch itself works.

© Super User or respective owner

Related posts about zsh

Related posts about prompt