See https://github.com/justjanne/powerline-go
Add the following. Note, this is customized to my taste.
# Add powerline-go
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go \
-newline -cwd-max-depth 5 -mode compatible -colorize-hostname\
-max-width 95 -shell bash\
-modules 'venv,host,ssh,cwd,perms,git,hg,jobs,exit,root')"
}
if [ "$TERM" != "linux" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi