diff --git a/prompt.sh b/prompt.sh index 02c02c4..1822bcc 100644 --- a/prompt.sh +++ b/prompt.sh @@ -80,7 +80,12 @@ function build_prompt { then PS1="${PS1} ${on}($current_commit_hash_abbrev)" else - PS1="${PS1} ${on}(${current_branch})" + if [[ $has_upstream == true ]] + then + PS1="${PS1} ${on}(${current_branch} => ${upstream})" + else + PS1="${PS1} ${on}(${current_branch})" + fi fi fi